Package com.dylibso.chicory.wasm.types
Class NameCustomSection
java.lang.Object
com.dylibso.chicory.wasm.types.Section
com.dylibso.chicory.wasm.types.CustomSection
com.dylibso.chicory.wasm.types.NameCustomSection
The "name" custom section.
-
Method Summary
Modifier and TypeMethodDescriptionintname()nameOfData(int dataIdx) nameOfElement(int elementIdx) nameOfFunction(int functionIdx) nameOfGlobal(int globalIdx) nameOfLabel(int functionIdx, int labelIdx) nameOfLocal(int functionIdx, int localIdx) nameOfMemory(int memoryIdx) nameOfTable(int tableIdx) nameOfTag(int tagIdx) static NameCustomSectionparse(byte[] bytes) Parse a new instance from a byte array.
-
Method Details
-
parse
Parse a new instance from a byte array.- Parameters:
bytes- the byte content of the section
-
name
- Specified by:
namein classCustomSection
-
moduleName
- Returns:
- the optional module name
-
nameOfFunction
- Returns:
- the name of the function with the given index, or
nullif none is set
-
functionNameCount
public int functionNameCount()- Returns:
- the number of function names in this section This value does not have any relationship to the function index of any particular entry; it merely reflects the number of function names in this section. Used for testing.
-
nameOfLocal
- Returns:
- the name of the local with the given index within the function with the given index, or
nullif none is set
-
nameOfLabel
- Returns:
- the name of the local with the given index within the function with the given index, or
nullif none is set
-
nameOfTable
- Returns:
- the name of the table with the given index, or
nullif none is set
-
nameOfMemory
- Returns:
- the name of the memory with the given index, or
nullif none is set
-
nameOfGlobal
- Returns:
- the name of the global with the given index, or
nullif none is set
-
nameOfElement
- Returns:
- the name of the element with the given index, or
nullif none is set
-
nameOfData
- Returns:
- the name of the data segment with the given index, or
nullif none is set
-
nameOfTag
- Returns:
- the name of the tag with the given index, or
nullif none is set
-