BitMagic-C++
|
Base class for all decoding functionality. More...
#include <encoding.h>
Public Member Functions | |
decoder_base (const unsigned char *buf) BMNOEXCEPT | |
unsigned char | get_8 () BMNOEXCEPT |
Reads character from the decoding buffer. More... | |
size_t | size () const BMNOEXCEPT |
Returns size of the current decoding stream. More... | |
void | seek (int delta) BMNOEXCEPT |
change current position More... | |
void | memcpy (unsigned char *dst, size_t count) BMNOEXCEPT |
read bytes from the decode buffer More... | |
const unsigned char * | get_pos () const BMNOEXCEPT |
Return current buffer pointer. More... | |
void | set_pos (const unsigned char *pos) BMNOEXCEPT |
Set current buffer pointer. More... | |
bm::id64_t | get_h64 () BMNOEXCEPT |
Read h-64-bit. More... | |
Protected Attributes | |
const unsigned char * | buf_ |
More... | |
const unsigned char * | start_ |
Base class for all decoding functionality.
Definition at line 87 of file encoding.h.
|
inline |
Reads character from the decoding buffer.
Definition at line 93 of file encoding.h.
Referenced by bm::deserialize(), bm::operation_deserializer< BV >::deserialize(), bm::compressed_collection_deserializer< CBC >::deserialize(), bm::deserialize_range(), bm::operation_deserializer< BV >::deserialize_range(), bm::sparse_vector_deserializer< SV >::load_header(), bm::sparse_vector_deserializer< SV >::load_planes_off_table(), bm::sparse_vector_deserializer< SV >::load_remap(), bm::deseriaizer_base< DEC, BLOCK_IDX >::read_gap_block(), bm::deseriaizer_base< DEC, BLOCK_IDX >::read_id_list(), and bm::deseriaizer_base< DEC, BLOCK_IDX >::try_skip().
|
inline |
Read h-64-bit.
Reads 64-bit word from the decoding buffer.
Definition at line 691 of file encoding.h.
|
inline |
Return current buffer pointer.
Definition at line 105 of file encoding.h.
Referenced by bm::compressed_collection_deserializer< CBC >::deserialize(), and bm::deseriaizer_base< DEC, BLOCK_IDX >::try_skip().
|
inline |
read bytes from the decode buffer
Load bytes from the decode buffer
Definition at line 679 of file encoding.h.
References bm::encoder::memcpy().
Referenced by bm::compressed_collection_deserializer< CBC >::deserialize(), and bm::sparse_vector_deserializer< SV >::load_remap().
|
inline |
change current position
Definition at line 99 of file encoding.h.
Referenced by bm::compressed_collection_deserializer< CBC >::deserialize(), bm::decoder_little_endian::get_16(), bm::decoder_little_endian::get_32(), and bm::decoder_little_endian::get_32_OR().
|
inline |
Set current buffer pointer.
Definition at line 108 of file encoding.h.
Referenced by bm::deseriaizer_base< DEC, BLOCK_IDX >::try_skip().
|
inline |
Returns size of the current decoding stream.
Definition at line 96 of file encoding.h.