decode_Decode
Overview
decode_Decode is a class in Aspose.Font FOSS for Python.
This class provides 23 methods for working with decode_Decode objects in Python programs.
Available methods include: BROTLI_FAILURE, BROTLI_LOG, BROTLI_LOG_ARRAY_INDEX, BROTLI_LOG_UCHAR_VECTOR, BROTLI_LOG_UINT, BrotliDecompress, BrotliDecompressStreaming, BrotliDecompressedSize, CopyUncompressedBlockToOutput, DecodeBlockType, DecodeBlockTypeWithContext, DecodeContextMap, and 11 additional methods.
All public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package.
Methods
| Signature | Description |
|---|---|
BROTLI_FAILURE() | Returns a Brotli failure indicator |
BROTLI_LOG_UINT(x) | Logs an unsigned integer value for debugging |
BROTLI_LOG_ARRAY_INDEX(array_name, idx) | Logs the element at idx of array_name |
BROTLI_LOG(x) | Writes a generic debug message containing x |
BROTLI_LOG_UCHAR_VECTOR(v, _hx_len) | Logs a vector of unsigned chars of length _hx_len |
DecodeWindowBits(br) | Reads window size bits from the bit reader br |
DecodeVarLenUint8(br) | ` reads a variable‑length unsigned 8‑bit integer from a Brotli bit reader |
JumpToByteBoundary(br) | Calls JumpToByteBoundary on this decode_Decode instance. |
DecodeMetaBlockLength(br, meta_block_length, input_end, is_metadata, is_uncompressed) | Parses meta‑block length and related flags |
ReadSymbol(table, table_off, br) | Calls ReadSymbol on this decode_Decode instance. |
ReadHuffmanCodeLengths(code_length_code_lengths, num_symbols, code_lengths, s) | Reads Huffman code lengths for symbols |
ReadHuffmanCode(alphabet_size, table, table_off, opt_table_size, s) | Builds a Huffman code table for given alphabet |
ReadBlockLength(table, table_off, br) | Reads the length of a compressed block using a table |
TranslateShortCodes(code, ringbuffer, index) | Expands short codes into full values in the ringbuffer |
InverseMoveToFrontTransform(v, v_len) | Reverses a move‑to‑front transform on array v |
HuffmanTreeGroupDecode(group, s) | Decodes a group of Huffman trees from stream s |
DecodeContextMap(context_map_size, num_htrees, context_map, s) | Reads a context map for Huffman trees |
DecodeBlockType(max_block_type, trees, tree_type, block_types, ringbuffers, indexes, br) | Determines block type using provided trees and buffers |
DecodeBlockTypeWithContext(s, br) | Decodes a block type while considering the current context |
CopyUncompressedBlockToOutput(output, pos, s) | Copies raw block data to output at position pos |
BrotliDecompressedSize(encoded_size, encoded_buffer, encoded_buffer_off, decoded_size) | Computes expected decompressed size |
BrotliDecompressStreaming(input, output, finish, s) | Decompresses Brotli data in a streaming fashion |
BrotliDecompress(input, output) | Fully decompresses a Brotli‑encoded buffer into output |