Files
common/docs/util-crypto/modules/_xxhash_xxhash64_asvalue_.md
T
2018-10-19 15:51:10 +00:00

948 B

Functions

xxhash64AsValue

▸ xxhash64AsValue(data: * Buffer | Uint8Array | string*, seed: number): number

Defined in xxhash/xxhash64/asValue.ts:23

name: xxhash64AsValue

signature: xxhash64AsValue (data: Buffer | Uint8Array | string, seed: number): number

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:

Param Type
data Buffer | Uint8Array | string
seed number

Returns: number