> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SyscOutputScalarData Struct Reference

Part of [C Interfaces for Participant Library](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/group__SyscParticipantLibraryCAPI)

Provide a struct for output scalar data.

`#include <syscOutputScalarData.h>`

## Data Fields

| Type | Name |
| - | - |
| enum [SyscPrimitiveType](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/group__SyscParticipantLibraryCAPI#gade3becc3625d881bdd988111e0895a3c) | [primitiveType](#a8d379fbb21a0db72ca1e91725b1c4f17) |
| const void \* | [data](#ac6e4962585166fdc6b76161f513525f8) |
| size\_t | [size](#a22d6699f074b01a21ee6072272cfa0f3) |

## Detailed Description

Provide a struct for output scalar data.

Input scalar data provides read-only access to an array of scalar data.

To create and/or initialize [SyscOutputScalarData](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/structSyscOutputScalarData.md), it is highly recommended to use one of the functions with names starting with `syscGetOutputScalarData`. These functions will initialize all members to the correct values and will help to avoid back-compatibility issues in the future. For example:

```c theme={null}
SyscOutputScalarData osd = syscGetOutputScalarDataDouble(array, arraySize);
```

Definition at line [37](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/syscOutputScalarData_8h_source) of file [syscOutputScalarData.h](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/syscOutputScalarData_8h_source).

## Field Documentation

### data

```c theme={null}
const void* SyscOutputScalarData::data
```

Pointer to the data array.

Definition at line [39](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/syscOutputScalarData_8h_source) of file [syscOutputScalarData.h](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/syscOutputScalarData_8h_source).

### primitiveType

```c theme={null}
enum SyscPrimitiveType SyscOutputScalarData::primitiveType
```

Primitive type.

Definition at line [115](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/syscOutputScalarData_8h_source) of file [syscOutputScalarData.h](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/syscOutputScalarData_8h_source).

### size

```c theme={null}
size_t SyscOutputScalarData::size
```

Array size.

Definition at line [40](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/syscOutputScalarData_8h_source) of file [syscOutputScalarData.h](https://developer.synopsys.com/docs/system-coupling/system-coupling-c-library/syscOutputScalarData_8h_source).
