BitMagic-C++
|
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 () |
bm::id64_t | get_64 () |
void | get_32 (bm::word_t *w, unsigned count) |
bool | get_32_OR (bm::word_t *w, unsigned count) |
void | get_32_AND (bm::word_t *w, unsigned count) |
void | get_16 (bm::short_t *s, unsigned count) |
![]() | |
decoder_base (const unsigned char *buf) | |
unsigned char | get_8 () |
Reads character from the decoding buffer. More... | |
size_t | size () const |
Returns size of the current decoding stream. More... | |
void | seek (int delta) |
change current position More... | |
void | memcpy (unsigned char *dst, size_t count) |
read bytes from the decode buffer More... | |
const unsigned char * | get_pos () const |
Return current buffer pointer. More... | |
Additional Inherited Members | |
![]() | |
const unsigned char * | buf_ |
const unsigned char * | start_ |
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 144 of file encoding.h.
|
inline |
Definition at line 793 of file encoding.h.
|
inline |
Definition at line 799 of file encoding.h.
References bm::decoder_base::buf_.
|
inline |
Definition at line 889 of file encoding.h.
References bm::decoder_base::buf_, and bm::decoder_base::seek().
|
inline |
Definition at line 809 of file encoding.h.
References bm::decoder_base::buf_.
Referenced by get_32_AND(), and get_32_OR().
|
inline |
Definition at line 833 of file encoding.h.
References bm::decoder_base::buf_, and bm::decoder_base::seek().
|
inline |
Definition at line 876 of file encoding.h.
References get_32().
|
inline |
Definition at line 854 of file encoding.h.
References get_32(), and bm::decoder_base::seek().
|
inline |
Definition at line 818 of file encoding.h.
References bm::decoder_base::buf_.