BitMagic-C++
Public Member Functions
bm::decoder_little_endian Class Reference

Class for decoding data from memory buffer. More...

#include <encoding.h>

Inheritance diagram for bm::decoder_little_endian:
Inheritance graph
[legend]
Collaboration diagram for bm::decoder_little_endian:
Collaboration graph
[legend]

Public Member Functions

 decoder_little_endian (const unsigned char *buf)
 
bm::short_t get_16 ()
  More...
 
bm::word_t get_24 ()
  More...
 
bm::word_t get_32 ()
  More...
 
bm::id64_t get_48 ()
  More...
 
bm::id64_t get_64 ()
  More...
 
void get_32 (bm::word_t *w, unsigned count)
  More...
 
bool get_32_OR (bm::word_t *w, unsigned count)
  More...
 
void get_32_AND (bm::word_t *w, unsigned count)
  More...
 
void get_16 (bm::short_t *s, unsigned count)
  More...
 
- Public Member Functions inherited from bm::decoder_base
 decoder_base (const unsigned char *buf) BMNOEXCEPT
 
unsigned char get_8 () BMNOEXCEPT
 Reads character from the decoding buffer. More...
 
size_t size () const BMNOEXCEPT
 Returns size of the current decoding stream. More...
 
void seek (int delta) BMNOEXCEPT
 change current position More...
 
void memcpy (unsigned char *dst, size_t count) BMNOEXCEPT
 read bytes from the decode buffer More...
 
const unsigned char * get_pos () const BMNOEXCEPT
 Return current buffer pointer. More...
 
void set_pos (const unsigned char *pos) BMNOEXCEPT
 Set current buffer pointer. More...
 
bm::id64_t get_h64 () BMNOEXCEPT
 Read h-64-bit. More...
 

Additional Inherited Members

- Protected Attributes inherited from bm::decoder_base
const unsigned char * buf_
  More...
 
const unsigned char * start_
 

Detailed Description

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 159 of file encoding.h.


The documentation for this class was generated from the following file: