WasmMemoryType Class

A memory type (https://webassembly.github.io/spec/core/syntax/types.html#memory-types): the limits are in pages of 64 KiB.

public sealed class WasmMemoryType : WasmExternType
Inheritance
WasmExternType WasmMemoryType

Constructors

NameDescription
WasmMemoryType(ulong, ulong?, bool, bool)A memory type (https://webassembly.github.io/spec/core/syntax/types.html#memory-types): the limits are in pages of 64 KiB.

WasmMemoryType(ulong, ulong?, bool, bool)

WasmTypes.cs

A memory type (https://webassembly.github.io/spec/core/syntax/types.html#memory-types): the limits are in pages of 64 KiB.

public WasmMemoryType(ulong minimum, ulong? maximum, bool is64 = false, bool shared = false)

Parameters

minimum ulong
The initial size in pages.
maximum ulong?
The maximum size in pages, or null.
is64 bool
Whether the addresses are 64-bit (memory64).
shared bool
Whether the memory is shared by the threads.

Properties

NameDescription
Is64Gets a value indicating whether the addresses are 64-bit (memory64).
KindGets the kind of the type.
MaximumGets the maximum size in pages, or null.
MinimumGets the initial size in pages.
SharedGets a value indicating whether the memory is shared by the threads.

Gets a value indicating whether the addresses are 64-bit (memory64).

public bool Is64 { get; }

Property value

bool

Gets the kind of the type.

public override WasmExternKind Kind { get; }

Property value

WasmExternKind

Gets the maximum size in pages, or null.

public ulong? Maximum { get; }

Property value

ulong?

Gets the initial size in pages.

public ulong Minimum { get; }

Property value

ulong

Gets a value indicating whether the memory is shared by the threads.

public bool Shared { get; }

Property value

bool

Constants

NameDescription
PageSizeThe size of a page in bytes.

PageSize

The size of a page in bytes.

public const ulong PageSize = 65536UL