encode_encode_BrotliCompressor
Overview
encode_encode_BrotliCompressor is a class in Aspose.Font FOSS for Python.
This class provides 7 methods for working with encode_encode_BrotliCompressor objects in Python programs.
Available methods include: BrotliSetCustomDictionary, CopyInputToRingBuffer, GetBrotliStorage, WriteBrotliData, WriteMetaBlockInternal, __init__, input_block_size.
All public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package.
Properties: cmd_buffer_size_, commands_, dist_cache_, hash_type_, hashers_, input_pos_, and 17 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
storage_ | `` | Read | Gets the storage . |
last_byte_bits_ | `` | Read | Gets the last byte bits . |
last_byte_ | `` | Read | Gets the last byte . |
commands_ | `` | Read | Gets the commands . |
cmd_buffer_size_ | `` | Read | Gets the cmd buffer size . |
literal_cost_mask_ | `` | Read | Gets the literal cost mask . |
literal_cost_ | `` | Read | Gets the literal cost . |
ringbuffer_ | `` | Read | Gets the ringbuffer . |
hash_type_ | `` | Read | Gets the hash type . |
max_backward_distance_ | `` | Read | Gets the max backward distance . |
saved_dist_cache_ | `` | Read | Gets the saved dist cache . |
dist_cache_ | `` | Read | Gets the dist cache . |
params_ | `` | Read | Gets the params . |
hashers_ | `` | Read | Gets the hashers . |
input_pos_ | `` | Read | Gets the input pos . |
num_commands_ | `` | Read | Gets the num commands . |
num_literals_ | `` | Read | Gets the num literals . |
last_insert_len_ | `` | Read | Gets the last insert len . |
last_flush_pos_ | `` | Read | Gets the last flush pos . |
last_processed_pos_ | `` | Read | Gets the last processed pos . |
prev_byte_ | `` | Read | Gets the prev byte . |
prev_byte2_ | `` | Read | Gets the prev byte2 . |
storage_size_ | `` | Read | Gets the storage size . |
Methods
| Signature | Description |
|---|---|
__init__(params) | Calls init on this encode_encode_BrotliCompressor instance. |
GetBrotliStorage(size) | Returns a storage buffer of the requested size |
input_block_size() | Returns the size of an input block processed at a time |
CopyInputToRingBuffer(input_size, input_buffer) | Copies the given input data into the internal ring buffer |
BrotliSetCustomDictionary(size, _hx_dict) | Sets a custom dictionary of the specified size for compression |
WriteBrotliData(is_last, force_flush, out_size, output) | Writes compressed data, handling last‑block and optional forced flush |
WriteMetaBlockInternal(is_last, utf8_mode, out_size, output) | Writes a meta block, optionally in UTF‑8 mode, and marks final block |