Skip to content
On this page

Scale JS / @scale-codec/core / WalkerImpl

Class: WalkerImpl

@scale-codec/core.WalkerImpl

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new WalkerImpl(source)

Parameters

NameType
sourceArrayBufferView

Defined in

packages/core/src/util.ts:28

Properties

idx

idx: number = 0

Implementation of

Walker.idx

Defined in

packages/core/src/util.ts:26


u8

u8: Uint8Array

Implementation of

Walker.u8

Defined in

packages/core/src/util.ts:24


view

view: DataView

Implementation of

Walker.view

Defined in

packages/core/src/util.ts:25

Methods

checkFinalOffset

checkFinalOffset(): void

Returns

void

Defined in

packages/core/src/util.ts:34


setOffset

setOffset(value): WalkerImpl

Parameters

NameType
valuenumber

Returns

WalkerImpl

Defined in

packages/core/src/util.ts:38


decode

Static decode<T>(source, decode): T

Type parameters

Name
T

Parameters

NameType
sourceArrayBufferView
decodeDecode<T>

Returns

T

Defined in

packages/core/src/util.ts:17


encode

Static encode<T>(value, encode): Uint8Array

Type parameters

Name
T

Parameters

NameType
valueT
encodeEncode<T>

Returns

Uint8Array

Defined in

packages/core/src/util.ts:10