Grok  9.5.0
Public Member Functions | Private Attributes | List of all members
buf_chain Class Reference

#include <codestream.hpp>

Public Member Functions

 buf_chain ()
 
 buf_chain (uint32_t num)
 
buf_chainoperator= (const buf_chain &bc)
 
void add_buf_node (uint8_t *buf, uint32_t len)
 
void set_buf_node (uint32_t index, uint8_t *buf, uint32_t len)
 
void activate ()
 
void activate (int n)
 
void flush_bits ()
 
void check_last_FF ()
 
uint32_t get_total_length () const
 
uint8_t get_specific_byte (uint32_t bufpos)
 
uint8_t get_byte ()
 
uint8_t * get_current_address ()
 
void copy_N_bytes (uint8_t *&buf, uint32_t N)
 
uint16_t get_word ()
 
uint8_t get_bit ()
 
uint32_t get_N_bits (uint8_t N)
 

Private Attributes

uint32_t total_length
 
uint32_t num_nodes
 
std::vector< uint8_t * > node_buf
 
std::vector< uint32_t > node_length
 
uint32_t node_pos
 
uint32_t pos
 
uint8_t * current_buf
 
uint32_t current_length
 
uint8_t tmp_byte
 
uint8_t last_byte
 
uint8_t bits
 

Constructor & Destructor Documentation

◆ buf_chain() [1/2]

buf_chain::buf_chain ( )
inline

◆ buf_chain() [2/2]

buf_chain::buf_chain ( uint32_t  num)
inlineexplicit

Member Function Documentation

◆ activate() [1/2]

void buf_chain::activate ( )
inline

◆ activate() [2/2]

void buf_chain::activate ( int  n)
inline

◆ add_buf_node()

void buf_chain::add_buf_node ( uint8_t *  buf,
uint32_t  len 
)
inline

◆ check_last_FF()

void buf_chain::check_last_FF ( )
inline

References get_bit(), and tmp_byte.

◆ copy_N_bytes()

void buf_chain::copy_N_bytes ( uint8_t *&  buf,
uint32_t  N 
)
inline

◆ flush_bits()

void buf_chain::flush_bits ( )
inline

References bits.

◆ get_bit()

uint8_t buf_chain::get_bit ( )
inline

References bits, get_byte(), last_byte, and tmp_byte.

Referenced by check_last_FF(), and get_N_bits().

◆ get_byte()

uint8_t buf_chain::get_byte ( )
inline

◆ get_current_address()

uint8_t* buf_chain::get_current_address ( )
inline

◆ get_N_bits()

uint32_t buf_chain::get_N_bits ( uint8_t  N)
inline

References get_bit().

◆ get_specific_byte()

uint8_t buf_chain::get_specific_byte ( uint32_t  bufpos)
inline

References current_buf.

◆ get_total_length()

uint32_t buf_chain::get_total_length ( ) const
inline

References total_length.

◆ get_word()

uint16_t buf_chain::get_word ( )
inline

References get_byte().

◆ operator=()

buf_chain& buf_chain::operator= ( const buf_chain bc)
inline

◆ set_buf_node()

void buf_chain::set_buf_node ( uint32_t  index,
uint8_t *  buf,
uint32_t  len 
)
inline

References node_buf, node_length, and total_length.

Member Data Documentation

◆ bits

uint8_t buf_chain::bits
private

◆ current_buf

uint8_t* buf_chain::current_buf
private

◆ current_length

uint32_t buf_chain::current_length
private

◆ last_byte

uint8_t buf_chain::last_byte
private

Referenced by buf_chain(), get_bit(), and operator=().

◆ node_buf

std::vector<uint8_t *> buf_chain::node_buf
private

◆ node_length

std::vector<uint32_t> buf_chain::node_length
private

◆ node_pos

uint32_t buf_chain::node_pos
private

◆ num_nodes

uint32_t buf_chain::num_nodes
private

◆ pos

uint32_t buf_chain::pos
private

◆ tmp_byte

uint8_t buf_chain::tmp_byte
private

◆ total_length

uint32_t buf_chain::total_length
private

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