gobj_trace_dump()

gobj_trace_dump()#

The gobj_trace_dump() function logs a hex dump of a given buffer with an associated formatted message.

Prototype

void gobj_trace_dump(
    hgobj gobj,
    const char *bf,
    size_t len,
    const char *fmt,
    ...
);

Parameters

Key

Type

Description

gobj

hgobj

The GObj instance associated with the trace log.

bf

const char *

Pointer to the buffer containing the data to be dumped.

len

size_t

The length of the buffer in bytes.

fmt

const char *

A format string for the log message.

...

variadic

Additional arguments for the format string.


Return Value

This function does not return a value.

Notes

The gobj_trace_dump() function is useful for debugging by providing a hex dump of a buffer. It formats the message using the provided format string and arguments before logging the output.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples