#include <stddef.h>
#include <stdio.h>
Go to the source code of this file.
|
int | binary__fprintf (unsigned char *data, size_t len, size_t bytes_per_line, binary__fprintf_t printer, void *extra, FILE *fp) |
|
static void | print_binary (unsigned char *data, size_t len, size_t bytes_per_line, binary__fprintf_t printer, void *extra) |
|
int | is_printable_array (char *p, unsigned int len) |
|
◆ binary__fprintf_t
typedef int(* binary__fprintf_t) (enum binary_printer_ops op, unsigned int val, void *extra, FILE *fp) |
◆ binary_printer_ops
Enumerator |
---|
BINARY_PRINT_DATA_BEGIN | |
BINARY_PRINT_LINE_BEGIN | |
BINARY_PRINT_ADDR | |
BINARY_PRINT_NUM_DATA | |
BINARY_PRINT_NUM_PAD | |
BINARY_PRINT_SEP | |
BINARY_PRINT_CHAR_DATA | |
BINARY_PRINT_CHAR_PAD | |
BINARY_PRINT_LINE_END | |
BINARY_PRINT_DATA_END | |
Definition at line 8 of file print_binary.h.
◆ binary__fprintf()
int binary__fprintf |
( |
unsigned char * |
data, |
|
|
size_t |
len, |
|
|
size_t |
bytes_per_line, |
|
|
binary__fprintf_t |
printer, |
|
|
void * |
extra, |
|
|
FILE * |
fp |
|
) |
| |
◆ is_printable_array()
int is_printable_array |
( |
char * |
p, |
|
|
unsigned int |
len |
|
) |
| |
◆ print_binary()
static void print_binary |
( |
unsigned char * |
data, |
|
|
size_t |
len, |
|
|
size_t |
bytes_per_line, |
|
|
binary__fprintf_t |
printer, |
|
|
void * |
extra |
|
) |
| |
|
inlinestatic |