• FNV1A hash function, used for minimal perfect hashing algorithm.

    Parameters

    • data: Uint8Array

      The buffer to read data to hash from

    • offset: number

      The offset into the buffer to start reading data to hash

    • end: number

      The end offset (non-inclusive) of the data to hash.

    • hash: number = 0x811C9DC5

      The initial hash seed.

    Returns number

    The hash value.