Package com.dylibso.chicory.wasm.types
Class MemorySection
- java.lang.Object
-
- com.dylibso.chicory.wasm.types.Section
-
- com.dylibso.chicory.wasm.types.MemorySection
-
public class MemorySection extends Section
-
-
Constructor Summary
Constructors Constructor Description MemorySection()Construct a new, empty section instance.MemorySection(int estimatedSize)Construct a new, empty section instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intaddMemory(Memory memory)Add a memory definition to this section.MemorygetMemory(int idx)intmemoryCount()
-
-
-
Method Detail
-
memoryCount
public int memoryCount()
-
getMemory
public Memory getMemory(int idx)
-
addMemory
public int addMemory(Memory memory)
Add a memory definition to this section.- Parameters:
memory- the memory to add to this section (must not benull)- Returns:
- the index of the newly-added memory
-
-