Update Array
Convenience Functions
Declaration
tibrv_statustibrvMsg_Update
element_type
Array
(
tibrvMsg message,
const char* fieldName,
constelement_type
* value,
tibrv_u32 numElements);
tibrv_statustibrvMsg_Update
element_type
ArrayEx
(
tibrvMsg message,
const char* fieldName,
constelement_type
* value,
tibrv_u32 numElements,
tibrv_u16 fieldId);
Purpose
Update a field containing an array value.
Remarks
Each convenience function in this family locates a field (by name or identifier) and updates its data.
The type of the existing field (within the message) and the type of the updating value
must match. The number of elements can change.
Pointer data previously extracted from the field remain valid and unchanged until the message is destroyed; that is, even updating the field’s value does not invalidate pointer data. (See Pointer Snapshot.)
Function Name |
Element Type |
Type Description |
|
|
8-bit integer array |
|
|
8-bit unsigned integer array |
|
|
16-bit integer array |
|
|
16-bit unsigned integer array |
|
|
32-bit integer array |
|
|
32-bit unsigned integer array |
|
|
64-bit integer array |
|
|
64-bit unsigned integer array |
|
|
32-bit floating point array |
|
|
64-bit floating point array |
|
|
message array |
|
|
string array |
Parameter |
Description |
|
Update the specified field of this message. |
|
Update a field with this name. |
|
Update the message field to this array value. The function copies the new array into the existing field. |
|
When updating an array type, the program supplies the count of array elements in this parameter. |
|
Update the field with this identifier. Zero is a special value that signifies no field identifier. It is illegal to add a field that has both a |