encode_hash_HashLongestMatchQuickly

encode_hash_HashLongestMatchQuickly

Overview

encode_hash_HashLongestMatchQuickly is a class in Aspose.Font FOSS for Python.

This class provides 4 methods for working with encode_hash_HashLongestMatchQuickly objects in Python programs. Available methods include: FindLongestMatch, Reset, Store, __init__. All public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package. Properties: buckets_, kBucketBits, kBucketSize, kBucketSweep, kUseDictionary, num_dict_lookups_, and 1 more.

Properties

NameTypeAccessDescription
num_dict_matches_``ReadGets the num dict matches .
num_dict_lookups_``ReadGets the num dict lookups .
buckets_``ReadGets the buckets .
kBucketBits``ReadGets the k bucket bits.
kBucketSweep``ReadGets the k bucket sweep.
kUseDictionary``ReadGets the k use dictionary.
kBucketSize``ReadGets the k bucket size.

Methods

SignatureDescription
__init__(kBucketBits, kBucketSweep, kUseDictionary)Calls init on this encode_hash_HashLongestMatchQuickly instance.
Reset()Resets internal state for a new encoding session
Store(data, data_off, ix)Stores data at the given offset and index for hashing
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)Searches the ring buffer for the longest match using distance cache and outputs match details

See Also