Class ExportEntry
- java.lang.Object
-
- de.inetsoftware.jwebassembly.binary.SectionEntry
-
- de.inetsoftware.jwebassembly.binary.ExportEntry
-
class ExportEntry extends SectionEntry
An entry in the function section of the WebAssembly.
-
-
Field Summary
Fields Modifier and Type Field Description private intidprivate ExternalKindkindprivate java.lang.Stringname
-
Constructor Summary
Constructors Constructor Description ExportEntry(java.lang.String name, ExternalKind kind, int id)Create an entry for the export section.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidwriteSectionEntry(WasmOutputStream stream)Write this single entry to a section
-
-
-
Field Detail
-
name
private java.lang.String name
-
kind
private ExternalKind kind
-
id
private int id
-
-
Constructor Detail
-
ExportEntry
ExportEntry(java.lang.String name, ExternalKind kind, int id)Create an entry for the export section. This section contains a mapping from the external index to the type signature index.- Parameters:
name- the exported namekind- the type of exported objectid- the id inside the list of the related type
-
-
Method Detail
-
writeSectionEntry
void writeSectionEntry(WasmOutputStream stream) throws java.io.IOException
Write this single entry to a section- Specified by:
writeSectionEntryin classSectionEntry- Parameters:
stream- the target- Throws:
java.io.IOException- if any I/O error occur
-
-