Package com.dylibso.chicory.wasm.types
Class FunctionSection
- java.lang.Object
-
- com.dylibso.chicory.wasm.types.Section
-
- com.dylibso.chicory.wasm.types.FunctionSection
-
public class FunctionSection extends Section
-
-
Constructor Summary
Constructors Constructor Description FunctionSection()Construct a new, empty section instance.FunctionSection(int estimatedSize)Construct a new, empty section instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intaddFunctionType(int typeIndex)Add a function type index to this section.intfunctionCount()intgetFunctionType(int idx)FunctionTypegetFunctionType(int idx, TypeSection typeSection)
-
-
-
Method Detail
-
getFunctionType
public int getFunctionType(int idx)
-
functionCount
public int functionCount()
-
getFunctionType
public FunctionType getFunctionType(int idx, TypeSection typeSection)
-
addFunctionType
public int addFunctionType(int typeIndex)
Add a function type index to this section.- Parameters:
typeIndex- the type index to add (should be a valid index into the type section)- Returns:
- the index of the function whose type index was added
-
-