Class MemorySection
- java.lang.Object
-
- de.mirkosertic.bytecoder.core.backend.wasm.ast.ModuleSection
-
- de.mirkosertic.bytecoder.core.backend.wasm.ast.MemorySection
-
public class MemorySection extends ModuleSection
-
-
Constructor Summary
Constructors Constructor Description MemorySection(Module aModule)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMemoriesToIndex(java.util.List<Memory> memoryIndex)
(package private) void
export(Memory memory, java.lang.String objectName)
(package private) int
indexOf(Memory memory)
Memory
newMemory(int initialPages, int maximumPages)
void
writeTo(BinaryWriter binaryWriter)
void
writeTo(TextWriter textWriter)
-
Methods inherited from class de.mirkosertic.bytecoder.core.backend.wasm.ast.ModuleSection
getModule
-
-
-
-
Field Detail
-
memories
private final java.util.List<Memory> memories
-
-
Constructor Detail
-
MemorySection
MemorySection(Module aModule)
-
-
Method Detail
-
newMemory
public Memory newMemory(int initialPages, int maximumPages)
-
indexOf
int indexOf(Memory memory)
-
export
void export(Memory memory, java.lang.String objectName)
-
writeTo
public void writeTo(TextWriter textWriter)
-
writeTo
public void writeTo(BinaryWriter binaryWriter) throws java.io.IOException
- Throws:
java.io.IOException
-
addMemoriesToIndex
public void addMemoriesToIndex(java.util.List<Memory> memoryIndex)
-
-