1 #ifndef BYTE_FORMATTER_CLASS
2 #define BYTE_FORMATTER_CLASS
Provides a dynamically resizable ASCII character string.
A very common template for a dynamic array of bytes.
Provides functions for manipulating arrays of bytes.
static void shifted_string_to_bytes(const basis::astring &to_convert, basis::byte_array &as_array)
unshifts a string "to_convert" back into a byte_array.
DEFINE_CLASS_NAME("byte_formatter")
static void print_chars(const basis::abyte *to_print, int length, basis::astring &out, char replace='_')
sends the bytes in "to_print" of "length" bytes into the string "out".
virtual ~byte_formatter()
static bool in_hex_range(char to_check)
static void text_dump(basis::astring &output, const basis::abyte *location, basis::un_int length, basis::un_int label=0, const char *eol="\n")
prints out a block of memory in a human readable form.
static void bytes_to_string(const basis::byte_array &to_convert, basis::astring &as_string, bool space_delimited=true)
converts a byte_array into a string.
static void string_to_bytes(const basis::astring &to_convert, basis::byte_array &as_array)
wrangles the string "to_convert" into an equivalent byte form "as_array".
static void parse_dump(const basis::astring &dumped_form, basis::byte_array &bytes_found)
this operation performs the inverse of a text_dump.
static void make_eight(basis::un_int num, basis::astring &out)
static void bytes_to_shifted_string(const basis::byte_array &to_convert, basis::astring &as_string)
this is a special purpose converter from bytes to character strings.
static void print_char(basis::abyte to_print, basis::astring &out, char replace='_')
prints the byte "to_print" into "out" as long as "to_print" is readable.
Constants and objects used throughout HOOPLE.
unsigned char abyte
A fairly important unit which is seldom defined...
unsigned int un_int
Abbreviated name for unsigned integers.