Local

Local

data class Local

Represents a mutable local value for a WasmFunction.

From the docs:

The locals declare a vector of mutable local variables and their types. These variables are referenced through local indices in the function’s body. The index of the first local is the smallest index not referencing a parameter.

Fields

Name Description
val id: Local?
val valueType: ValueType

Constructors

<init>

constructor(id: Local?, valueType: ValueType)

Represents a mutable local value for a WasmFunction.

From the docs:

The locals declare a vector of mutable local variables and their types. These variables are referenced through local indices in the function’s body. The index of the first local is the smallest index not referencing a parameter.

Parameters

Name Description
id: Local?
valueType: ValueType