Ace_Packet_Raw_Binary_Get()
Abstract
Gets the raw information from a packet in binary form.
Syntax
Ace_Packet_Raw_Binary_Get (pk_ptr, packet_offset, binary_buffer, current_buffer_size)
| Argument | Type | Description |
|---|---|---|
pk_ptr |
AceT_Packet * |
Packet of interest. |
packet_offset |
int |
Location within the packet at which to begin reading binary information. |
binary_buffer |
unsigned char ** |
Buffer to hold the binary information. |
current_buffer_size |
int |
Size of binary_buffer. |
Return Type
int
Number of bytes read.
Header
ace_client_api.h
Example
/* Keep track of a static pointer to the recorded data so we can reuse it. */
rec_data_size = Ace_Packet_Raw_Binary_Get (pk_ptr, 0, &rec_data_arr,
rec_data_arr_size);
if (rec_data_size > rec_data_arr_size)
rec_data_arr_size = rec_data_size;
Details
This function will allocate additional space for binary_buffer if the current_buffer_size is not large enough.