name: U16

description: An 16-bit unsigned integer

Hierarchy

↳ UInt

↳ U16

Implements

Constructors

constructor

⊕ new U16(value?: AnyNumber): U16

Overrides UInt.constructor

Defined in U16.ts:14

Parameters:

Name Type
Optional value AnyNumber

Returns: U16


Methods

toHex

▸ toHex(): string

Implementation of Codec.toHex

Inherited from UInt.toHex

Overrides AbstractInt.toHex

Defined in codec/UInt.ts:36

description: Returns a hex string representation of the value

Returns: string


toU8a

▸ toU8a(isBare?: undefined | false | true): Uint8Array

Implementation of Codec.toU8a

Inherited from UInt.toU8a

Overrides AbstractInt.toU8a

Defined in codec/UInt.ts:48

description: Encodes the value as a Uint8Array as per the parity-codec specifications

Parameters:

Name Type Description
Optional isBare undefined false true true when the value has none of the type-specific prefixes (internal)

Returns: Uint8Array


results matching ""

    No results matching ""