byte_format.cpp File Reference

#include "byte_format.h"
#include "parser_bits.h"
#include "string_manipulation.h"
#include <basis/byte_array.h>
#include <basis/function.h>
#include <basis/istring.h>
#include <basis/log_base.h>
#include <basis/string_array.h>
#include <data_struct/bit_vector.h>

Include dependency graph for byte_format.cpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  byte_format

Defines

#define LOG(s)   {}
#define LINE_SIZE   80
#define static_class_name()   "byte_format"

Functions

void byte_format::print_char (byte to_print, istring &out, char replace= '_')
 prints the byte "to_print" into "out" as long as "to_print" is readable.
void byte_format::print_chars (const byte *to_print, int length, istring &out, char replace= '_')
 sends the bytes in "to_print" of "length" bytes into the string "out".
void byte_format::make_eight (u_int num, istring &out)
istring byte_format::text_dump (const byte *location, u_int length, u_int label=0, const char *eol="\n")
 this is a less efficient version of text_dump that returns a string.
void byte_format::text_dump (istring &output, const byte_array &to_dump, u_int label=0, const char *eol="\n")
 a version that operates on a byte_array and stores into a string.
istring byte_format::text_dump (const byte_array &to_dump, u_int label=0, const char *eol="\n")
 a version that operates on a byte_array and returns a string.
void byte_format::text_dump (istring &output, const byte *location, u_int length, u_int label=0, const char *eol="\n")
 prints out a block of memory in a human readable form.
void byte_format::parse_dump (const istring &dumped_form, byte_array &bytes_found)
 this operation performs the inverse of a text_dump.
void byte_format::bytes_to_string (const byte *to_convert, int length, istring &as_string, bool space_delimited=true)
 a version that accepts a byte pointer and length, rather than byte_array.
bool byte_format::in_hex_range (char to_check)
void byte_format::string_to_bytes (const char *to_convert, byte_array &as_array)
 a version that works with the char pointer rather than an istring.
void byte_format::bytes_to_string (const byte_array &to_convert, istring &as_string, bool space_delimited=true)
 converts a byte_array into a string.
void byte_format::string_to_bytes (const istring &to_convert, byte_array &as_array)
 wrangles the string "to_convert" into an equivalent byte form "as_array".
void byte_format::bytes_to_shifted_string (const byte_array &to_convert, istring &as_string)
 this is a special purpose converter from bytes to character strings.
void byte_format::shifted_string_to_bytes (const istring &to_convert, byte_array &as_array)
 unshifts a string "to_convert" back into a byte_array.


Define Documentation

#define LINE_SIZE   80

Definition at line 39 of file byte_format.cpp.

Referenced by byte_format::text_dump().

#define LOG (  )     {}

Definition at line 36 of file byte_format.cpp.

 
#define static_class_name (  )     "byte_format"

Definition at line 43 of file byte_format.cpp.


Generated on Thu Nov 20 04:29:48 2008 for HOOPLE Libraries by  doxygen 1.5.1