Add Array
Convenience Functions
Declaration
tibrv_statustibrvMsg_Add
element_type
Array
(
tibrvMsg message,
const char* fieldName,
constelement_type
* value,
tibrv_u32 numElements);
tibrv_statustibrvMsg_Add
element_type
ArrayEx
(
tibrvMsg message,
const char* fieldName,
constelement_type
* value,
tibrv_u32 numElements,
tibrv_u16 fieldId);
Purpose
Add a field containing an array value.
Function Name |
Element Type |
Type Description |
|
|
32-bit floating point array |
|
|
64-bit floating point array |
|
|
8-bit integer array |
|
|
16-bit integer array |
|
|
32-bit integer array |
|
|
64-bit integer array |
|
|
8-bit unsigned integer array |
|
|
16-bit unsigned integer array |
|
|
32-bit unsigned integer array |
|
|
64-bit unsigned integer array |
|
|
message array |
|
|
string array |
Parameter |
Description |
|
Add the new field to this message. |
|
Create the new field with this name. |
|
Add a new field that contains this array. The convenience function must correspond to the datatype of this value. The function copies the array into the new message field. |
|
When adding an array type, the program supplies the count of array elements in this parameter. |
|
Create the new field with this identifier. Zero is a special value that signifies no field identifier. All non-zero field identifiers must be unique within each message. It is illegal to add a field that has both a |