Files
common/docs/util-rlp/modules/_decoder_index_.md
T
2018-12-05 14:47:44 +00:00

826 B

Functions

decoder

▸ decoder(input?: * null | Uint8Array*): Uint8Array | Array<any>

Defined in decoder/index.ts:24

name: decoder

signature: decoder (input?: Uint8Array): Uint8Array | Array<*>

summary: Decodes the input RLP.

description: From an input, decode the RLP and return the result as a Uint8Array or Array.

example:

import { decode } from '@polkadot/util-rlp';

decode(new Uint8Array([0x83, 0x64, 0x6f, 0x67])); // => 'dog' as Uint8Array

Parameters:

Name Type
Optional input null | Uint8Array

Returns: Uint8Array | Array<any>