Skip to main content

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​
TypeName
WaaS.Models.DataSectiondataSection
WaaS.Runtime.GlobalInstanceglobalInstance
Exceptions​

WaaS.Runtime.TrapException
A segment is out of the bounds of the memory.