Scale JS / @scale-codec/definition-runtime / WalkerImpl
Class: WalkerImpl
@scale-codec/definition-runtime.WalkerImpl
Implements
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new WalkerImpl(source
)
Parameters
Name | Type |
---|---|
source | ArrayBufferView |
Defined in
Properties
idx
• idx: number
= 0
Implementation of
Defined in
u8
• u8: Uint8Array
Implementation of
Defined in
view
• view: DataView
Implementation of
Defined in
Methods
checkFinalOffset
▸ checkFinalOffset(): void
Returns
void
Defined in
setOffset
▸ setOffset(value
): WalkerImpl
Parameters
Name | Type |
---|---|
value | number |
Returns
Defined in
decode
▸ Static
decode<T
>(source
, decode
): T
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
source | ArrayBufferView |
decode | Decode <T > |
Returns
T
Defined in
encode
▸ Static
encode<T
>(value
, encode
): Uint8Array
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
value | T |
encode | Encode <T > |
Returns
Uint8Array