dynamic_buffer.h v0.2.2
Reference-counted byte buffer library for efficient I/O operations
|
Helper and debugging functions. More...
Functions | |
DB_DEF db_buffer | db_to_hex (db_buffer buf, bool uppercase) |
Create a hexadecimal representation of buffer contents. | |
DB_DEF db_buffer | db_from_hex (const char *hex_string, size_t length) |
Create buffer from hexadecimal string. | |
DB_DEF void | db_debug_print (db_buffer buf, const char *label) |
Print buffer information for debugging. | |
Helper and debugging functions.
Print buffer information for debugging.
buf | Buffer to print (can be NULL) |
label | Optional label for the output |
Create buffer from hexadecimal string.
hex_string | Hexadecimal string (must be valid hex) |
length | Length of hex string |