Pacote

    Interface XXHash<T>

    interface XXHash<T> {
        digest(encoding: "hex"): string;
        reset(seed?: number | T): void;
        update(input: string | ArrayBuffer): XXHash<T>;
    }

    Type Parameters

    • T
    Index

    Methods

    • Outputs the hexadecimal hash of the provided data.

      Parameters

      • encoding: "hex"

        Digest encoding. Only hex is supported at this time.

      Returns string

    • Resets the hasher state with an optional seed.

      Parameters

      • Optionalseed: number | T

        Optional seed value. If a value is not provided, then it remains the one used the last time the hasher was either created or reset.

      Returns void

    • Updates the hasher state with data from a string or buffer to hash.

      The hasher instance is returned for chaining other methods.

      Parameters

      • input: string | ArrayBuffer

        Data to hash.

      Returns XXHash<T>

    MMNEPVFCICPMFPCPTTAAATR