Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::net::http::huffman_encoder_t Class Reference

Huffman Encoder. More...

#include <Huffman.h>

Public Member Functions

 huffman_encoder_t () noexcept
 
virtual ~huffman_encoder_t () noexcept=default
 
std::vector< uint8_t > encode (const std::vector< uint8_t > &src) noexcept
 
std::vector< uint8_t > encode (const std::string &src) noexcept
 
std::vector< uint8_t > encode (const char *ptr) noexcept
 

Protected Member Functions

bool write_bit (uint8_t bit) noexcept
 

Private Attributes

uint8_t m_byte
 
uint8_t m_count
 

Detailed Description

Huffman Encoder.

Constructor & Destructor Documentation

◆ huffman_encoder_t()

huffman_encoder_t::huffman_encoder_t ( )
noexcept

◆ ~huffman_encoder_t()

virtual sese::net::http::huffman_encoder_t::~huffman_encoder_t ( )
virtualdefaultnoexcept

Member Function Documentation

◆ encode() [1/3]

std::vector< uint8_t > huffman_encoder_t::encode ( const char * ptr)
noexcept

References encode().

◆ encode() [2/3]

std::vector< uint8_t > huffman_encoder_t::encode ( const std::string & src)
noexcept

References encode().

◆ encode() [3/3]

std::vector< uint8_t > huffman_encoder_t::encode ( const std::vector< uint8_t > & src)
noexcept

◆ write_bit()

bool huffman_encoder_t::write_bit ( uint8_t bit)
inlineprotectednoexcept

Member Data Documentation

◆ m_byte

uint8_t sese::net::http::huffman_encoder_t::m_byte
private

◆ m_count

uint8_t sese::net::http::huffman_encoder_t::m_count
private

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