File src/hash/hash-cmph.c

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:

Valid XHTML 1.0!