Expand description
Utility related to block size part of the fuzzy hash.
See also: “Block Size” section of FuzzyHashData
Incompatibility Notice
This module is renamed from BlockSize to block_size in the version 0.2.2.
The old name BlockSize will be removed on the version 0.3.0.
Constants
- The minimum block size of a fuzzy hash.
- The number of valid block sizes.
Functions
- Compares two base-2 logarithm forms of the block size values for ordering.
- Compare two base-2 logarithm forms of the block size values to determine the relation between two block sizes.
- Converts base-2 logarithm form of the block size to the actual one.
- from_log_unchecked⚠
uncheckedConverts base-2 logarithm form of the block size to the actual one without checking validity of the block size. - Checks whether base-2 logarithm form of the block size is valid.
- Checks whether two base-2 logarithm forms of the block size values form a near relation (one of the three near cases).
- Checks whether two base-2 logarithm forms of the block size values form a
BlockSizeRelation::NearEqrelation. - Checks whether two base-2 logarithm forms of the block size values form a
BlockSizeRelation::NearGtrelation. - Checks whether two base-2 logarithm forms of the block size values form a
BlockSizeRelation::NearLtrelation. - Checks whether a given block size is valid.
- Computes the base-2 logarithm form of a valid block size.
- log_from_valid_unchecked⚠
uncheckedComputes the base-2 logarithm form of a valid block size but do not check whether the block size is valid.