Class MemoryInstance
Represents an instance of a memory.
Assembly: WaaS.Core.dll
View Source
Declaration
public class MemoryInstance
Properties
Memories
View Source
Declaration
public ReadOnlyMemory<Memory> Memories { get; }
Methods
Initialize(DataSection, GlobalInstance)
Initializes the memories with the active segments, and drops the active segments.
View Source
Declaration
public void Initialize(DataSection dataSection, GlobalInstance globalInstance)
Parameters
| Type | Name |
|---|---|
| WaaS.Models.DataSection | dataSection |
| WaaS.Runtime.GlobalInstance | globalInstance |
Exceptions
WaaS.Runtime.TrapException
A segment is out of the bounds of the memory.