dlvhex  2.5.0
bm::decoder Class Reference

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

#include <vs10/bm/encoding.h>

Inheritance diagram for bm::decoder:
Collaboration diagram for bm::decoder:

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

Definition at line 97 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 687 of file encoding.h.

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

Member Function Documentation

Reads 16bit word from the decoding buffer.

Definition at line 696 of file encoding.h.

References bm::decoder_base::buf_.

void bm::decoder::get_16 ( bm::short_t s,
unsigned  count 
)
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 761 of file encoding.h.

References bm::decoder_base::buf_, and bm::decoder_base::seek().

Reads 32 bit word from the decoding buffer.

Definition at line 711 of file encoding.h.

References bm::decoder_base::buf_.

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

References bm::decoder_base::buf_, and bm::decoder_base::seek().

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

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