UNPKG

@hugoalh/fnv

Version:

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

75 lines 2.85 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) 1. */ export declare class FNV1 extends FNV { /** * Initialize. * @param {FNVBitsSize} size Bits size of the FNV-1. * @param {FNVAcceptDataType} [data] Data. Can append later via the method {@linkcode FNV1.update} and {@linkcode FNV1.updateFromStream}. */ constructor(size: FNVBitsSize, data?: FNVAcceptDataType); } export default FNV1; /** * Get the non-cryptographic hash of the data with algorithm Fowler-Noll-Vo (FNV) 1-32. */ export declare class FNV1_32 extends FNV1 { /** * Initialize. * @param {FNVAcceptDataType} [data] Data. Can append later via the method {@linkcode FNV1_32.update} and {@linkcode FNV1_32.updateFromStream}. */ constructor(data?: FNVAcceptDataType); } /** * Get the non-cryptographic hash of the data with algorithm Fowler-Noll-Vo (FNV) 1-64. */ export declare class FNV1_64 extends FNV1 { /** * Initialize. * @param {FNVAcceptDataType} [data] Data. Can append later via the method {@linkcode FNV1_64.update} and {@linkcode FNV1_64.updateFromStream}. */ constructor(data?: FNVAcceptDataType); } /** * Get the non-cryptographic hash of the data with algorithm Fowler-Noll-Vo (FNV) 1-128. */ export declare class FNV1_128 extends FNV1 { /** * Initialize. * @param {FNVAcceptDataType} [data] Data. Can append later via the method {@linkcode FNV1_128.update} and {@linkcode FNV1_128.updateFromStream}. */ constructor(data?: FNVAcceptDataType); } /** * Get the non-cryptographic hash of the data with algorithm Fowler-Noll-Vo (FNV) 1-256. */ export declare class FNV1_256 extends FNV1 { /** * Initialize. * @param {FNVAcceptDataType} [data] Data. Can append later via the method {@linkcode FNV1_256.update} and {@linkcode FNV1_256.updateFromStream}. */ constructor(data?: FNVAcceptDataType); } /** * Get the non-cryptographic hash of the data with algorithm Fowler-Noll-Vo (FNV) 1-512. */ export declare class FNV1_512 extends FNV1 { /** * Initialize. * @param {FNVAcceptDataType} [data] Data. Can append later via the method {@linkcode FNV1_512.update} and {@linkcode FNV1_512.updateFromStream}. */ constructor(data?: FNVAcceptDataType); } /** * Get the non-cryptographic hash of the data with algorithm Fowler-Noll-Vo (FNV) 1-1024. */ export declare class FNV1_1024 extends FNV1 { /** * Initialize. * @param {FNVAcceptDataType} [data] Data. Can append later via the method {@linkcode FNV1_1024.update} and {@linkcode FNV1_1024.updateFromStream}. */ constructor(data?: FNVAcceptDataType); } //# sourceMappingURL=1.d.ts.map