Module src/hash/hash-cmph.c

vim:sw=4:sts=4 Hash lookup routines for minimal perfect hashes as generated by the cmph utility.

Functions

hash_search_cmph (L, hi2, datalen, hash_value, bucket_nr) Hash table lookup.


Functions

hash_search_cmph (L, hi2, datalen, hash_value, bucket_nr)
Hash table lookup. The key is used to calculate a bucket number. The hash value stored there is verified; if it matches, then an entry has been found. The offset stored in the bucket is used to find the data. The length of the entry is determined by looking at the following bucket; the data of all buckets is stored in order. Returns: NULL on failure, otherwise the pointer to the data; *datalen is filled with the length in bytes of the data.

Parameters

  • L:
  • hi2:
  • datalen:
  • hash_value:
  • bucket_nr:
In file: src/hash/hash-cmph.c line 19

Valid XHTML 1.0!