Skip to main content

System Coupling Participant library 2025 R2

File syscOutputIntegerData.h

Last update: 17.07.2025

Location: syscOutputIntegerData.h

Classes

Includes

  • SystemCouplingParticipant/LibraryType.hpp
  • SystemCouplingParticipant/syscCommonTypes.h
  • <stddef.h>
  • <stdint.h>
graph LR
5["stdint.h"]

3["SystemCouplingParticipant/syscCommonTypes.h"]

4["stddef.h"]

1["syscOutputIntegerData.h"]
click 1 "syscOutputIntegerData_8h.md#syscOutputIntegerData_8h"
1 --> 2
1 --> 3
1 --> 4
1 --> 5

2["SystemCouplingParticipant/LibraryType.hpp"]

Functions

Function syscGetOutputIntegerData

SyscOutputIntegerData syscGetOutputIntegerData()

Create an output integer data access struct.

Primitive type will default to 64-bit signed integer. Data size will be set to zero. Data pointer will be set to null.

Return type: SyscOutputIntegerData

Function syscGetOutputIntegerDataInt32

SyscOutputIntegerData syscGetOutputIntegerDataInt32(const int32_t *const data, size_t dataSize)

Create an output integer data access struct.

Parameters:

  • data: - pointer to the signed (32-bit) array of data.
  • dataSize: - number of elements in the array.

Parameters:

  • const int32_t *const data
  • size_t dataSize

Return type: SyscOutputIntegerData

Function syscGetOutputIntegerDataInt64

SyscOutputIntegerData syscGetOutputIntegerDataInt64(const int64_t *const data, size_t dataSize)

Create an output integer data access struct.

Parameters:

  • data: - pointer to the 64-bit array of integer data.
  • dataSize: - number of elements in the array.

Parameters:

  • const int64_t *const data
  • size_t dataSize

Return type: SyscOutputIntegerData

Function syscGetOutputIntegerDataUInt16

SyscOutputIntegerData syscGetOutputIntegerDataUInt16(const uint16_t *const data, size_t dataSize)

Create an output integer data access struct.

Parameters:

  • data: - pointer to the 16-bit array of unsigned integer data.
  • dataSize: - number of elements in the array.

Parameters:

  • const uint16_t *const data
  • size_t dataSize

Return type: SyscOutputIntegerData

Function syscGetOutputIntegerDataUInt64

SyscOutputIntegerData syscGetOutputIntegerDataUInt64(const uint64_t *const data, size_t dataSize)

Create an output integer data access struct.

Parameters:

  • data: - pointer to the 64-bit array of unsigned integer data.
  • dataSize: - number of elements in the array.

Parameters:

  • const uint64_t *const data
  • size_t dataSize

Return type: SyscOutputIntegerData

Source

/*
* Copyright ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.
*/

#pragma once

#include "SystemCouplingParticipant/LibraryType.hpp"

#include "SystemCouplingParticipant/syscCommonTypes.h"

#include <stddef.h>
#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef struct {
  enum SyscPrimitiveType primitiveType; 
  const void* data;                     
  size_t size;                          
} SyscOutputIntegerData;

SyscOutputIntegerData syscGetOutputIntegerData();

SyscOutputIntegerData syscGetOutputIntegerDataInt32(
  const int32_t* const data,
  size_t dataSize);

SyscOutputIntegerData syscGetOutputIntegerDataInt64(
  const int64_t* const data,
  size_t dataSize);

SyscOutputIntegerData syscGetOutputIntegerDataUInt16(
  const uint16_t* const data,
  size_t dataSize);

SyscOutputIntegerData syscGetOutputIntegerDataUInt64(
  const uint64_t* const data,
  size_t dataSize);

#ifdef __cplusplus
}
#endif

Connect with Ansys