Package com.dylibso.chicory.wasm.types
Class ActiveElement
java.lang.Object
com.dylibso.chicory.wasm.types.Element
com.dylibso.chicory.wasm.types.ActiveElement
An active element.
An active element copies its elements into a table during initialization of that table.
-
Constructor Summary
ConstructorsConstructorDescriptionActiveElement(ValueType type, List<List<Instruction>> initializers, int tableIndex, List<Instruction> offset) Construct a new instance. -
Method Summary
Methods inherited from class com.dylibso.chicory.wasm.types.Element
elementCount, equals, hashCode, initializers, type
-
Constructor Details
-
ActiveElement
public ActiveElement(ValueType type, List<List<Instruction>> initializers, int tableIndex, List<Instruction> offset) Construct a new instance.- Parameters:
type- the type of the element values (must not benull)initializers- the list of instruction lists which are used to initialize each element in the range (must not benull)tableIndex- the index of the table which is to be initializedoffset- the list of instructions which give the offset into the table (must not benull)
-
-
Method Details
-
tableIndex
public int tableIndex()- Returns:
- the table to actively initialize
-
offset
- Returns:
- a constant expression defining the offset into the table
-