libexplain  1.4.D001
Functions
libexplain/buffer/hexdump.c File Reference
#include <libexplain/ac/ctype.h>
#include <libexplain/buffer/hexdump.h>

Go to the source code of this file.

Functions

void explain_buffer_hexdump (explain_string_buffer_t *sb, const void *data, size_t data_size)
void explain_buffer_hexdump_array (explain_string_buffer_t *sb, const void *data, size_t data_size)
static int mostly_text (const char *data, size_t data_size)
void explain_buffer_mostly_text (explain_string_buffer_t *sb, const void *data, size_t data_size)

Function Documentation

void explain_buffer_hexdump ( explain_string_buffer_t sb,
const void *  data,
size_t  data_size 
)

The explain_buffer_hexdump function may be used to dump data in hex form to the given string buffer.

Parameters:
sbThe string buffer to print into.
dataThe data to dump
data_sizeThe size of the data to dump

Definition at line 25 of file hexdump.c.

void explain_buffer_hexdump_array ( explain_string_buffer_t sb,
const void *  data,
size_t  data_size 
)

The explain_buffer_hexdump_array function may be used to dump data in hex form to the given string buffer.

Parameters:
sbThe string buffer to print into.
dataThe data to dump
data_sizeThe size of the data to dump

Definition at line 40 of file hexdump.c.

void explain_buffer_mostly_text ( explain_string_buffer_t sb,
const void *  data,
size_t  data_size 
)

Definition at line 84 of file hexdump.c.

static int mostly_text ( const char *  data,
size_t  data_size 
) [static]

Definition at line 65 of file hexdump.c.