Functions | |
template<typename T> void | write_4_bytes (const T &v, std::ostream &out) |
Write a 4-byte variable into a stream. | |
template<typename T> void | write_2_bytes (const T &v, std::ostream &out) |
Write a 2-byte variable into a stream. | |
template<typename T> void | read_4_bytes (T *result, std::istream &in) |
Read a 4-byte variable from a stream. | |
template<typename T> void | read_2_bytes (T *result, std::istream &in) |
Read a 2-byte variable from a stream. | |
template<typename T> void | convert_bit_order (const T &var, T *result) |
If REVERSE_BIT_ORDER is defined, inverse the bit order. | |
void | go_to_next (const char c, std::istream &in) |
Read from the stream until the next corresponding character. | |
void | go_to_next_token (const std::string token, std::istream &in) |
Read from the stream until the end of the given token. | |
char | go_to_next_of_list (const std::string token_list, std::istream &in) |
Read from the stream until the next character contained within a string. |
|
If REVERSE_BIT_ORDER is defined, inverse the bit order.
|
|
Read from the stream until the next corresponding character.
|
|
Read from the stream until the next character contained within a string.
|
|
Read from the stream until the end of the given token. Be careful, it is a basic version that does not recognize BAR in BBAR i.e. there is no finite automata. It is just enough to parse simplistic files. |
|
Read a 2-byte variable from a stream.
|
|
Read a 4-byte variable from a stream.
|
|
Write a 2-byte variable into a stream.
|
|
Write a 4-byte variable into a stream.
|