Package com.dylibso.chicory.wasm.types
Class CodeSection
- java.lang.Object
-
- com.dylibso.chicory.wasm.types.Section
-
- com.dylibso.chicory.wasm.types.CodeSection
-
public class CodeSection extends Section
-
-
Constructor Summary
Constructors Constructor Description CodeSection()Construct a new, empty section instance.CodeSection(int estimatedSize)Construct a new, empty section instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intaddFunctionBody(FunctionBody functionBody)Add a function body to this section.FunctionBody[]functionBodies()intfunctionBodyCount()FunctionBodygetFunctionBody(int idx)
-
-
-
Method Detail
-
functionBodies
public FunctionBody[] functionBodies()
-
functionBodyCount
public int functionBodyCount()
-
getFunctionBody
public FunctionBody getFunctionBody(int idx)
-
addFunctionBody
public int addFunctionBody(FunctionBody functionBody)
Add a function body to this section.- Parameters:
functionBody- the function body to add to this section (must not benull)- Returns:
- the index of the newly-added function body
-
-