BitMagic-C++
Public Member Functions | Protected Attributes
bm::decoder_base Class Reference

Base class for all decoding functionality. More...

#include <encoding.h>

Inheritance diagram for bm::decoder_base:
Inheritance graph
[legend]

Public Member Functions

 decoder_base (const unsigned char *buf)
 
unsigned char get_8 ()
 Reads character from the decoding buffer. More...
 
size_t size () const
 Returns size of the current decoding stream. More...
 
void seek (int delta)
 change current position More...
 
void memcpy (unsigned char *dst, size_t count)
 read bytes from the decode buffer More...
 
const unsigned char * get_pos () const
 Return current buffer pointer. More...
 

Protected Attributes

const unsigned char * buf_
 
const unsigned char * start_
 

Detailed Description

Base class for all decoding functionality.

Definition at line 81 of file encoding.h.

Constructor & Destructor Documentation

◆ decoder_base()

bm::decoder_base::decoder_base ( const unsigned char *  buf)
inline

Definition at line 84 of file encoding.h.

Member Function Documentation

◆ get_8()

unsigned char bm::decoder_base::get_8 ( )
inline

◆ get_pos()

const unsigned char* bm::decoder_base::get_pos ( ) const
inline

Return current buffer pointer.

Definition at line 99 of file encoding.h.

Referenced by bm::compressed_collection_deserializer< CBC >::deserialize().

◆ memcpy()

void bm::decoder_base::memcpy ( unsigned char *  dst,
size_t  count 
)
inline

read bytes from the decode buffer

Load bytes from the decode buffer

Definition at line 573 of file encoding.h.

References bm::encoder::memcpy().

Referenced by bm::sparse_vector_deserializer< SV >::deserialize(), bm::compressed_collection_deserializer< CBC >::deserialize(), bm::decoder::get_16(), bm::decoder::get_32(), and bm::decoder::get_64().

◆ seek()

void bm::decoder_base::seek ( int  delta)
inline

◆ size()

size_t bm::decoder_base::size ( ) const
inline

Returns size of the current decoding stream.

Definition at line 90 of file encoding.h.

Referenced by bm::deserializer< typename SV::bvector_type, bm::decoder >::deserialize().

Field Documentation

◆ buf_

const unsigned char* bm::decoder_base::buf_
protected

◆ start_

const unsigned char* bm::decoder_base::start_
protected

Definition at line 102 of file encoding.h.


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