Expand description
Utility functions.
Functions§
- map32_
to_ 32 - Maps 32-bit
hashto the range[0, n), wherenis a 32-bit integer. - map64_
to_ 64 - Maps 64-bit
hashto the range[0, n), wherenis a 64-bit integer. - read_
bits - Reads
number_of_bitsbits, rounded up to multiple of 64, frominput. - verify_
kphf - Checks if
kphfis valid partial k-perfect hash function. Panics if it is not (also ifphfreturnsNonefor any key). - verify_
partial_ kphf - Checks if
kphfis valid partial (Noneresults are ignored) k-perfect hash function. Panics if it is not. - verify_
partial_ phf - Checks if
phfis valid partial (Noneresults are ignored) perfect hash function. Panics if it is not. - verify_
phf - Checks if
phfis valid k-perfect hash function. Panics if it is not (also ifphfreturnsNonefor any key).