Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals | Examples

bm::decoder Class Reference

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

#include <encoding.h>

Inheritance diagram for bm::decoder:

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

Collaboration graph
[legend]

Public Member Functions

 decoder (const unsigned char *buf)
 Construction.
bm::short_t get_16 ()
 Reads 16bit word from the decoding buffer.
bm::word_t get_32 ()
 Reads 32 bit word from the decoding buffer.
void get_32 (bm::word_t *w, unsigned count)
 Reads block of 32-bit words from the decoding buffer.
void get_16 (bm::short_t *s, unsigned count)
 Reads block of 32-bit words from the decoding buffer.

Detailed Description

Class for decoding data from memory buffer.

Properly handles aligment issues with integer data types.

Definition at line 87 of file encoding.h.


Constructor & Destructor Documentation

bm::decoder::decoder const unsigned char *  buf  )  [inline]
 

Construction.

Parameters:
buf - pointer to the decoding memory.

Definition at line 240 of file encoding.h.


Member Function Documentation

void bm::decoder::get_16 bm::short_t s,
unsigned  count
[inline]
 

Reads block of 32-bit words from the decoding buffer.

Parameters:
s - pointer on memory block to read into.
count - size of memory block in words.

Definition at line 300 of file encoding.h.

References bm::decoder_base::seek().

BMFORCEINLINE bm::short_t bm::decoder::get_16  ) 
 

Reads 16bit word from the decoding buffer.

Definition at line 249 of file encoding.h.

References BMFORCEINLINE.

void bm::decoder::get_32 bm::word_t w,
unsigned  count
[inline]
 

Reads block of 32-bit words from the decoding buffer.

Parameters:
w - pointer on memory block to read into.
count - size of memory block in words.

Definition at line 275 of file encoding.h.

References bm::decoder_base::seek().

BMFORCEINLINE bm::word_t bm::decoder::get_32  ) 
 

Reads 32 bit word from the decoding buffer.

Definition at line 260 of file encoding.h.

References BMFORCEINLINE.


The documentation for this class was generated from the following file:
Generated on Sun Aug 5 14:12:41 2007 for BitMagic by  doxygen 1.4.1