![]() |
tinyimg 1.0.0
Lightweight image manipulation library for Cloudflare Workers
|
Writes a bitstream into a TinyWriter. More...
#include <util.h>
Public Attributes | |
| TinyWriter * | out |
| uint32_t | accumulator |
| uint32_t | count |
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.
| uint32_t TinyBitWriter::accumulator |
Bits not yet part of a whole byte, an implementation detail.
| uint32_t TinyBitWriter::count |
How many bits the accumulator holds, an implementation detail.
| TinyWriter* TinyBitWriter::out |
The sink whole bytes are appended to.