encode_hash_HashLongestMatchQuickly
概述
encode_hash_HashLongestMatchQuickly 是 Aspose.Font FOSS 中用于 Python 的一个类。
此类提供 4 个方法,用于在 Python 程序中处理 encode_hash_HashLongestMatchQuickly 对象。可用的方法包括:FindLongestMatch、Reset、Store、__init__。安装 Aspose.Font FOSS for Python 包后,所有公共成员对任何 Python 应用程序均可访问。属性:buckets_、kBucketBits、kBucketSize、kBucketSweep、kUseDictionary、num_dict_lookups_,以及另外 1 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
num_dict_matches_ | `` | 读取 | 获取字典匹配的数量。 |
num_dict_lookups_ | `` | 读取 | 获取字典查找次数。 |
buckets_ | `` | 读取 | 获取桶 。 |
kBucketBits | `` | 读取 | 获取 k 桶位。 |
kBucketSweep | `` | 读取 | 获取 k 桶扫掠。 |
kUseDictionary | `` | 读取 | 获取 k 使用字典。 |
kBucketSize | `` | 读取 | 获取 k 桶大小。 |
方法
| 签名 | 描述 |
|---|---|
__init__(kBucketBits, kBucketSweep, kUseDictionary) | Calls init 在此 encode_hash_HashLongestMatchQuickly 实例上。 |
Reset() | 重置内部状态以开始新的编码会话 |
Store(data, data_off, ix) | 在给定的偏移量和索引处存储数据以进行哈希 |
FindLongestMatch(ring_buffer, ring_buffer_mask, distance_cache, cur_ix, max_length, max_backward, best_len_out, best_len_code_out, best_distance_out, best_score_out) | 使用距离缓存搜索环形缓冲区以寻找最长匹配,并输出匹配详情 |