decode_BitReader
Overview
decode_BitReader is a class in Aspose.Font FOSS for Python.
This class provides 9 methods for working with decode_BitReader objects in Python programs.
Available methods include: BitMask, BrotliFillBitWindow, BrotliInitBitReader, BrotliReadBits, BrotliReadInputAmount, BrotliReadMoreInput, BrotliWarmupBitReader, ShiftBytes32, __init__.
All public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package.
Methods
| Signature | Description |
|---|---|
__init__() | Calls init on this decode_BitReader instance. |
BitMask(n) | ` returns a bitmask covering the lowest n bits of an integer |
ShiftBytes32(br) | Shifts the reader’s 32‑bit buffer by whole bytes |
BrotliReadMoreInput(br) | Loads additional input data into the bit reader when the buffer is empty |
BrotliReadInputAmount(br, num) | Reads exactly num bytes from the source into the reader |
BrotliFillBitWindow(br) | Refills the internal bit window with bits from the input stream |
BrotliInitBitReader(br, input, finish) | Creates and configures a bit reader for Brotli decoding |
BrotliWarmupBitReader(br) | Performs initial warm‑up to prime the bit window before decoding starts |
BrotliReadBits(br, n_bits) | ` reads the next n_bits from a Brotli bit‑reader and returns them as an integer |