encode_encode_BrotliCompressor

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

NameTypeAccessDescription
storage_``ReadGets the storage .
last_byte_bits_``ReadGets the last byte bits .
last_byte_``ReadGets the last byte .
commands_``ReadGets the commands .
cmd_buffer_size_``ReadGets the cmd buffer size .
literal_cost_mask_``ReadGets the literal cost mask .
literal_cost_``ReadGets the literal cost .
ringbuffer_``ReadGets the ringbuffer .
hash_type_``ReadGets the hash type .
max_backward_distance_``ReadGets the max backward distance .
saved_dist_cache_``ReadGets the saved dist cache .
dist_cache_``ReadGets the dist cache .
params_``ReadGets the params .
hashers_``ReadGets the hashers .
input_pos_``ReadGets the input pos .
num_commands_``ReadGets the num commands .
num_literals_``ReadGets the num literals .
last_insert_len_``ReadGets the last insert len .
last_flush_pos_``ReadGets the last flush pos .
last_processed_pos_``ReadGets the last processed pos .
prev_byte_``ReadGets the prev byte .
prev_byte2_``ReadGets the prev byte2 .
storage_size_``ReadGets the storage size .

Methods

SignatureDescription
__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

See Also