UNPKG

@hugoalh/fnv

Version:

A module to get the non-cryptographic hash of the data with algorithm Fowler-Noll-Vo (FNV).

75 lines 2.89 kB
import { FNV, type FNVAcceptDataType, type FNVBitsSize } from "./base.js"; export type { FNVAcceptDataType, FNVBitsSize } from "./base.js"; /** * Get the non-cryptographic hash of the data with algorithm Fowler-Noll-Vo (FNV) 1a. */ export declare class FNV1a extends FNV { /** * Initialize. * @param {FNVBitsSize} size Bits size of the FNV-1a. * @param {FNVAcceptDataType} [data] Data. Can append later via the method {@linkcode FNV1a.update} and {@linkcode FNV1a.updateFromStream}. */ constructor(size: FNVBitsSize, data?: FNVAcceptDataType); } export default FNV1a; /** * Get the non-cryptographic hash of the data with algorithm Fowler-Noll-Vo (FNV) 1a-32. */ export declare class FNV1a_32 extends FNV1a { /** * Initialize. * @param {FNVAcceptDataType} [data] Data. Can append later via the method {@linkcode FNV1a_32.update} and {@linkcode FNV1a_32.updateFromStream}. */ constructor(data?: FNVAcceptDataType); } /** * Get the non-cryptographic hash of the data with algorithm Fowler-Noll-Vo (FNV) 1a-64. */ export declare class FNV1a_64 extends FNV1a { /** * Initialize. * @param {FNVAcceptDataType} [data] Data. Can append later via the method {@linkcode FNV1a_64.update} and {@linkcode FNV1a_64.updateFromStream}. */ constructor(data?: FNVAcceptDataType); } /** * Get the non-cryptographic hash of the data with algorithm Fowler-Noll-Vo (FNV) 1a-128. */ export declare class FNV1a_128 extends FNV1a { /** * Initialize. * @param {FNVAcceptDataType} [data] Data. Can append later via the method {@linkcode FNV1a_128.update} and {@linkcode FNV1a_128.updateFromStream}. */ constructor(data?: FNVAcceptDataType); } /** * Get the non-cryptographic hash of the data with algorithm Fowler-Noll-Vo (FNV) 1a-256. */ export declare class FNV1a_256 extends FNV1a { /** * Initialize. * @param {FNVAcceptDataType} [data] Data. Can append later via the method {@linkcode FNV1a_256.update} and {@linkcode FNV1a_256.updateFromStream}. */ constructor(data?: FNVAcceptDataType); } /** * Get the non-cryptographic hash of the data with algorithm Fowler-Noll-Vo (FNV) 1a-512. */ export declare class FNV1a_512 extends FNV1a { /** * Initialize. * @param {FNVAcceptDataType} [data] Data. Can append later via the method {@linkcode FNV1a_512.update} and {@linkcode FNV1a_512.updateFromStream}. */ constructor(data?: FNVAcceptDataType); } /** * Get the non-cryptographic hash of the data with algorithm Fowler-Noll-Vo (FNV) 1a-1024. */ export declare class FNV1a_1024 extends FNV1a { /** * Initialize. * @param {FNVAcceptDataType} [data] Data. Can append later via the method {@linkcode FNV1a_1024.update} and {@linkcode FNV1a_1024.updateFromStream}. */ constructor(data?: FNVAcceptDataType); } //# sourceMappingURL=1a.d.ts.map