Skip to main content
Version: 9.0.2

gre_io_unserialize

int gre_io_unserialize(
gre_io_serialized_data_t *  buffer,  
char **  event_target,  
char **  event_name,  
char **  event_format,  
void **  event_data  
)

Transform a serialized buffer into individual event items (see gre/io_mgr.h). The pointers returned point back into the content of the serialized buffer so the buffer can't be de-allocated until clients are finished referencing the event items returned from this call.

Data parameters must be sent in order of descending alignment requirements. Example: 4u1 4u1 2u1 1s0 is good, 2u1 4u1 4u1 1s0 is not.

Parameters

ParameterTypeDescription
buffergre_io_serialized_data_t*The buffer containing the serialized data.
event_targetchar**Location to store the event target model element.
event_namechar**Location to store the event name.
event_formatchar**Location to store the event format.
event_datavoid**Location to store the event data.

Returns

TypeDescription
intThe number of bytes in the event_data structure.