Package com.dylibso.chicory.wasm.types
Class ExportSection
- java.lang.Object
-
- com.dylibso.chicory.wasm.types.Section
-
- com.dylibso.chicory.wasm.types.ExportSection
-
public class ExportSection extends Section
-
-
Constructor Summary
Constructors Constructor Description ExportSection()Construct a new, empty section instance.ExportSection(int estimatedSize)Construct a new, empty section instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intaddExport(Export export)Add an export definition to this section.intexportCount()ExportgetExport(int idx)
-
-
-
Method Detail
-
exportCount
public int exportCount()
-
getExport
public Export getExport(int idx)
-
addExport
public int addExport(Export export)
Add an export definition to this section.- Parameters:
export- the export to add to this section (must not benull)- Returns:
- the index of the newly-added export
-
-