TipcMsgFieldUpdateReal4ArrayPtr update the pointer of the message field returned by TipcMsgAppendReal4ArrayPtr
T_BOOL TipcMsgFieldUpdateReal4ArrayPtr(field
, *real4_array
,array_size
) T_IPC_MSG_FIELDfield
; T_REAL4 *real4_array
; T_INT4array_size;
field
message pointer field to update
real4_array
data for new message field
array_size
number of elements in real4_array
TRUE
if the pointer was successfully updated, FALSE
otherwise.
If TipcMsgFieldUpdateReal4ArrayPtr fails, it returns FALSE
and sets the global SmartSockets error number to one of:
TipcMsgFieldUpdateReal4ArrayPtr updates the pointer of the message field returned by TipcMsgAppendReal4ArrayPtr. The contents of the pointer are not copied. Instead, the supplied pointer is entered directly into the message field's internal data structure. The caller is responsible for making sure that the pointer remains valid for the lifetime of the message field, and for freeing it, if necessary, when the message field has been destroyed.
This example changes the pointer of the REAL4_ARRAY field:
T_REAL4 *ptr1, *ptr2; T_INT4 size1, size2; T_IPC_MSG_FIELD field; if (!TipcMsgAppendReal4ArrayPtr(msg, ptr1, size1, &field)) {return
; /* error */
} if (!TipcMsgFieldUpdateReal4ArrayPtr(field, ptr2, size2)) {return
; /* error */
}
TIBCO SmartSockets™ Application Programming Interface Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |