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 ()
bm::word_t get_32 ()
void get_32 (bm::word_t *w, unsigned count)
void get_16 (bm::short_t *s, unsigned count)

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


Constructor & Destructor Documentation

bm::decoder_little_endian::decoder_little_endian ( const unsigned char *  buf  )  [inline]

Definition at line 792 of file encoding.h.


Member Function Documentation

void bm::decoder_little_endian::get_16 ( bm::short_t s,
unsigned  count 
) [inline]

Definition at line 832 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 797 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 812 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 804 of file encoding.h.

References bm::decoder_base::buf_.


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

Generated on Sun Apr 25 09:37:45 2010 for BitMagic by  doxygen 1.6.1