Search
Preparing search index...
The search index is not available
bigint-hash
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
XxHasher
Class XxHasher
An internal hasher which calls xxHash. Do not use directly.
Hierarchy
XxHasher
Implements
Hash
Index
Constructors
constructor
Methods
digest
digest
Big
Int
update
get
XxHash
Type
Constructors
constructor
new
XxHasher
(
hash
:
HashType
, xxType
?:
XxHashType
, xxHandle
?:
any
)
:
XxHasher
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
digest
(
output
?:
OutputType
)
:
bigint
|
Buffer
Parameters
Default value
output:
OutputType
= OutputType.Buffer
Returns
bigint
|
Buffer
digest
Big
Int
digest
Big
Int
(
)
:
bigint
Returns
bigint
update
update
(
data
:
string
|
Buffer
, inputEncoding
?:
InputEncoding
)
:
Hash
Parameters
data:
string
|
Buffer
Optional
inputEncoding:
InputEncoding
Returns
Hash
Static
get
XxHash
Type
get
XxHash
Type
(
hash
:
HashType
)
:
XxHashType
Parameters
hash:
HashType
Returns
XxHashType
Globals
Hash
Type
Input
Encoding
Output
Type
Keccak
Hasher
Openssl
Hasher
Xx
Hasher
constructor
digest
digest
Big
Int
update
get
XxHash
Type
Hash
get
Hasher
hash
AsBig
Int
hash
AsBuffer
Generated using
TypeDoc
An internal hasher which calls xxHash. Do not use directly.