Ace_Decoder_Hex_Get()
Abstract
Returns the hexadecimal representation of a binary buffer.
Syntax
Ace_Decoder_Hex_Get (buffer, buffer_size, hex_lptr)
| Argument | Type | Description |
|---|---|---|
buffer |
const unsigned char * |
Buffer to be displayed as hex. |
buffer_size |
int |
Size of buffer, in bytes. |
hex_lptr |
PrgT_List * |
List to hold the hex output. |
Return Type
int
PRGC_TRUE if the operation was successful; PRGC_FALSE otherwise.
Header
ace_client_api.h
Example
Ace_Decoder_Hex_Get (raw_buffer + *total_bytes_parsed_ptr, num_bytes, details_lptr);
Details
This function takes a binary buffer and returns a list of text lines containing hex and ASCII representations of the binary data. It is useful for debugging decoder operation.