tinyimg 1.0.0
Lightweight image manipulation library for Cloudflare Workers
Loading...
Searching...
No Matches
TinyBitWriter Struct Reference

Writes a bitstream into a TinyWriter. More...

#include <util.h>

Public Attributes

TinyWriterout
uint32_t accumulator
uint32_t count

Detailed Description

Writes a bitstream into a TinyWriter.

The mirror of TinyBitReader, and subject to the same rule: pick one bit order and stay with it for the whole stream. Bits buffered when the last value does not land on a byte boundary are only emitted by a flush.

Member Data Documentation

◆ accumulator

uint32_t TinyBitWriter::accumulator

Bits not yet part of a whole byte, an implementation detail.

◆ count

uint32_t TinyBitWriter::count

How many bits the accumulator holds, an implementation detail.

◆ out

TinyWriter* TinyBitWriter::out

The sink whole bytes are appended to.


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