dlvhex  2.5.0
bm::decoder_little_endian Class Reference

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

#include <vs10/bm/encoding.h>

Inheritance diagram for bm::decoder_little_endian:
Collaboration diagram for bm::decoder_little_endian:

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)
 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.

bm::decoder_little_endian::decoder_little_endian ( const unsigned char *  buf)

Member Function Documentation

void bm::decoder_little_endian::get_16 ( bm::short_t s,
unsigned  count 
)
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().

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().

void bm::decoder_little_endian::get_32 ( bm::word_t w,
unsigned  count 
)

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