bm::decoder Class Reference

Search Toolkit Book for bm::decoder

#include <encoding.h>

Inheritance diagram for bm::decoder:

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

Collaboration graph
[legend]
List of all members.

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.

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.


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.


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

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

bm::short_t bm::decoder::get_16  )  [inline]
 

Reads 16bit word from the decoding buffer.

Definition at line 696 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 buf, bm::decoder_base::buf_, and bm::decoder_base::seek().

bm::word_t bm::decoder::get_32  )  [inline]
 

Reads 32 bit word from the decoding buffer.

Definition at line 711 of file encoding.h.

References bm::decoder_base::buf_.


The documentation for this class was generated from the following file:
Generated on Mon Dec 7 16:07:13 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:24:38 2009 by modify_doxy.py rev. 173732