Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::CA::ca_gif_detail::Bit_Writer Class Reference

#include <ca-gif.H>

Collaboration diagram for Aleph::CA::ca_gif_detail::Bit_Writer:
[legend]

Public Member Functions

void write (const unsigned code, const unsigned width)
 
Array< std::uint8_t > finish ()
 

Private Attributes

Array< std::uint8_t > bytes_
 
std::uint32_t buffer_ = 0
 
unsigned bits_ = 0
 

Detailed Description

Definition at line 156 of file ca-gif.H.

Member Function Documentation

◆ finish()

Array< std::uint8_t > Aleph::CA::ca_gif_detail::Bit_Writer::finish ( )
inline

Definition at line 175 of file ca-gif.H.

References Aleph::Array< T >::append(), bits_, buffer_, and bytes_.

Referenced by Aleph::CA::ca_gif_detail::lzw_bytes().

◆ write()

void Aleph::CA::ca_gif_detail::Bit_Writer::write ( const unsigned  code,
const unsigned  width 
)
inline

Definition at line 163 of file ca-gif.H.

References Aleph::Array< T >::append(), bits_, buffer_, bytes_, and Aleph::code().

Referenced by Aleph::CA::ca_gif_detail::lzw_bytes().

Member Data Documentation

◆ bits_

unsigned Aleph::CA::ca_gif_detail::Bit_Writer::bits_ = 0
private

Definition at line 160 of file ca-gif.H.

Referenced by finish(), and write().

◆ buffer_

std::uint32_t Aleph::CA::ca_gif_detail::Bit_Writer::buffer_ = 0
private

Definition at line 159 of file ca-gif.H.

Referenced by finish(), and write().

◆ bytes_

Array<std::uint8_t> Aleph::CA::ca_gif_detail::Bit_Writer::bytes_
private

Definition at line 158 of file ca-gif.H.

Referenced by finish(), and write().


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