TipcMsgGetNamedReal16Array


Name

TipcMsgGetNamedReal16Array — get a field containing an array of REAL16 values from a message, using a name

Synopsis

T_BOOL TipcMsgGetNamedReal16Array(msg, name, value_return, size_return) 
T_IPC_MSG msg; 
T_STR name; 
T_REAL16 **value_return; 
T_INT4 *size_return; 

Arguments

msg — message to get field from

name — name of the field

value_return — pointer to value of the field

size_return — pointer to size of the field, in bytes

Return Values

TRUE if the get was successful, FALSE otherwise.

Diagnostics

If TipcMsgGetNamedReal16Array fails, it returns FALSE and sets the global SmartSockets error number to:

Description

TipcMsgGetNamedReal16Array gets the field specified by the name. The returned pointer should be considered read-only. The function fails if:

Caution

If TipcMsgGetNamedReal16Array returns FALSE, it does not store a value in value_return.

Do not modify the value in value_return. It points directly into an internal data structure.

Not all platforms fully support the REAL16 type. While some platforms can manipulate them as uninterpreted bytes, they can neither manipulate nor interpret them as numbers.

See Also

TipcMsgAddNamedReal16Array, TipcMsgUpdateNamedReal16Array, TipcMsgNextReal16Array

Examples

This example gets a REAL16_ARRAY field from an existing message:

T_IPC_MSG msg; 
T_BOOL status; 
T_REAL16 *value; 
T_INT4 size; 
status = TipcMsgGetNamedReal16Array(msg, "foo", &value, &size); 
if (status == FALSE) { 
  return;  /* error */ 
}  

TIBCO SmartSockets™ Application Programming Interface
Software Release 6.8, July 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com