tdump2json()
#
tdump2json
converts a binary buffer into a JSON object, representing the data in a structured hexadecimal and ASCII format.
Prototype
json_t *tdump2json(
const uint8_t *s,
size_t len
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
Pointer to the binary data buffer. |
|
|
Length of the binary data buffer. |
Return Value
A JSON object where each key represents an address offset and the value is a string containing the hexadecimal and ASCII representation of the corresponding data.
Notes
This function is useful for debugging and inspecting binary data in a human-readable format.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples