Update String
Convenience Function
Declaration
tibrv_statustibrvMsg_UpdateString
(
tibrvMsg message,
const char* fieldName,
const char* value);
tibrv_statustibrvMsg_UpdateStringEx
(
tibrvMsg message,
const char* fieldName,
const char* value,
tibrv_u16 fieldId);
Purpose
Update a field containing a character string.
Remarks
This convenience function 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 length of the string 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.)
Parameter |
Description |
|
Update the specified field of this message. |
|
Update a field with this name. |
|
Update the message field to this value (which may be a literal or stored in a variable). The function copies the new value into the existing field. |
|
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 |