Options
All
  • Public
  • Public/Protected
  • All
Menu

Class XxHasher

An internal hasher which calls xxHash. Do not use directly.

Hierarchy

  • XxHasher

Implements

Index

Constructors

constructor

  • Parameters

    • hash: HashType
    • Default value xxType: XxHashType = XxHasher.getXxHashType(hash)
    • Default value xxHandle: any = fallback ?hash === HashType.xxHash64 ? xxhashjs.h64(0) : xxhashjs.h32(0) :libxxhash.getHashHandle(xxType)

    Returns XxHasher

Methods

digest

  • Parameters

    • Default value output: OutputType = OutputType.Buffer

    Returns bigint | Buffer

digestBigInt

  • digestBigInt(): bigint

update

Static getXxHashType

  • getXxHashType(hash: HashType): XxHashType

Generated using TypeDoc