ssdeep::block_size

Constant NUM_VALID

source
pub const NUM_VALID: usize = 31;
Expand description

The number of valid block sizes.

NUM_VALID is the smallest value which 2n exceeds u32::MAX and this value itself is not valid as a base-2 logarithm form of the block size (in fact, this is the smallest invalid value) in the fuzzy hash object.

Note that, it can however be a valid effective base-2 logarithm form of the block size of the block hash 2 where the (base) block size (as in a fuzzy hash) is the largest valid one. Some low level methods may accept this value (in u8) as a base-2 logarithm form of the block size (explicitly documented in such cases).