Skip to content

WasmMemoryInfo

Namespace: Dotsider.Core.Analysis.Models

Assembly: Dotsider.Core.dll

One WebAssembly memory declaration.

public sealed record WasmMemoryInfo : IEquatable<WasmMemoryInfo>

ObjectWasmMemoryInfo

WasmMemoryInfo(int, ulong, ulong?, bool, bool)

Section titled “WasmMemoryInfo(int, ulong, ulong?, bool, bool)”

One WebAssembly memory declaration.

Parameters:

  • Index (Int32): The zero-based memory index.
  • MinimumPages (UInt64): The minimum memory page count.
  • MaximumPages (Nullable<UInt64>): The maximum memory page count when one is declared.
  • IsShared (Boolean): Whether the memory is declared shared.
  • IsMemory64 (Boolean): Whether the memory uses 64-bit indices.
public WasmMemoryInfo(int Index, ulong MinimumPages, ulong? MaximumPages, bool IsShared, bool IsMemory64)

The zero-based memory index.

Returns: Int32

public int Index { get; init; }

Whether the memory uses 64-bit indices.

Returns: Boolean

public bool IsMemory64 { get; init; }

Whether the memory is declared shared.

Returns: Boolean

public bool IsShared { get; init; }

The maximum memory page count when one is declared.

Returns: Nullable<UInt64>

public ulong? MaximumPages { get; init; }

The minimum memory page count.

Returns: UInt64

public ulong MinimumPages { get; init; }