Class for decoding data from memory buffer. More...
#include <encoding.h>
Public Member Functions | |
decoder_little_endian (const unsigned char *buf) | |
bm::short_t | get_16 () |
bm::word_t | get_32 () |
void | get_32 (bm::word_t *w, unsigned count) |
void | get_16 (bm::short_t *s, unsigned count) |
Class for decoding data from memory buffer.
Properly handles aligment issues with integer data types. Converts data to little endian architecture (presumed it was encoded as big endian)
Definition at line 124 of file encoding.h.
bm::decoder_little_endian::decoder_little_endian | ( | const unsigned char * | buf | ) | [inline] |
Definition at line 795 of file encoding.h.
void bm::decoder_little_endian::get_16 | ( | bm::short_t * | s, | |
unsigned | count | |||
) | [inline] |
Definition at line 835 of file encoding.h.
References bm::decoder_base::buf_, and bm::decoder_base::seek().
BMFORCEINLINE bm::short_t bm::decoder_little_endian::get_16 | ( | ) |
Definition at line 800 of file encoding.h.
References bm::decoder_base::buf_.
void bm::decoder_little_endian::get_32 | ( | bm::word_t * | w, | |
unsigned | count | |||
) | [inline] |
Definition at line 815 of file encoding.h.
References bm::decoder_base::buf_, and bm::decoder_base::seek().
BMFORCEINLINE bm::word_t bm::decoder_little_endian::get_32 | ( | ) |
Definition at line 807 of file encoding.h.
References bm::decoder_base::buf_.