encode_encode_BrotliCompressor

encode_encode_BrotliCompressor

概述

encode_encode_BrotliCompressor 是 Aspose.Font FOSS 中用于 Python 的类。

此类提供 7 个方法,用于在 Python 程序中处理 encode_encode_BrotliCompressor 对象。可用的方法包括:BrotliSetCustomDictionary、CopyInputToRingBuffer、GetBrotliStorage、WriteBrotliData、WriteMetaBlockInternal、__init__、input_block_size。在安装了 Aspose.Font 用于 Python 的 FOSS 包之后,所有公共成员对任何 Python 应用程序均可访问。属性:cmd_buffer_size_、commands_、dist_cache_、hash_type_、hashers_、input_pos_,以及另外 17 项。

属性

名称类型访问描述
storage_``读取获取存储。
last_byte_bits_``读取获取最后一个字节的位。
last_byte_``读取获取最后一个字节。
commands_``读取获取命令。
cmd_buffer_size_``读取获取 cmd 缓冲区大小。
literal_cost_mask_``读取获取文字成本掩码。
literal_cost_``读取获取字面成本。
ringbuffer_``读取获取环形缓冲区 .
hash_type_``读取获取哈希类型。
max_backward_distance_``读取获取最大后向距离。
saved_dist_cache_``读取获取已保存的 dist 缓存。
dist_cache_``读取获取 dist 缓存。
params_``读取获取参数。
hashers_``读取获取哈希器。
input_pos_``读取获取输入位置。
num_commands_``读取获取 num commands。
num_literals_``读取获取字面量的数量。
last_insert_len_``读取获取最后的插入长度 .
last_flush_pos_``读取获取最后一次刷新位置。
last_processed_pos_``读取获取最后处理的位置。
prev_byte_``读取获取前一个字节 .
prev_byte2_``读取获取前一个 byte2。
storage_size_``读取获取存储大小。

方法

签名描述
__init__(params)Calls init 在此 encode_encode_BrotliCompressor 实例上。
GetBrotliStorage(size)返回请求大小的存储缓冲区
input_block_size()返回一次处理的输入块的大小
CopyInputToRingBuffer(input_size, input_buffer)将给定的输入数据复制到内部环形缓冲区
BrotliSetCustomDictionary(size, _hx_dict)为压缩设置指定大小的自定义字典
WriteBrotliData(is_last, force_flush, out_size, output)写入压缩数据,处理最后块并可选的强制刷新
WriteMetaBlockInternal(is_last, utf8_mode, out_size, output)写入元块,可选择以 UTF‑8 模式,并标记为最终块

另请参阅

 中文