Files
common/docs/util-crypto/modules/_xxhash_xxhash64_asvalue_.md
T
2019-02-27 14:02:13 +00:00

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