838 B
838 B
Functions
xxhash64AsValue
▸ xxhash64AsValue(data: Buffer | Uint8Array | string, seed: number): number
Defined in xxhash/xxhash64/asValue.ts:22
name: xxhash64AsValue
summary: Creates a hex number from the input.
description: From either a string, Uint8Array or a Buffer input, create the xxhash and return the result as a hex number
example:
import { xxhash64AsValue } from '@polkadot/util-crypto';
xxhash64AsValue('abcd', 0xabcd)); // => e29f70f8b8c96df7
Parameters:
| Name | Type |
|---|---|
| data | Buffer | Uint8Array | string |
| seed | number |
Returns: number