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; }

Deconstruct(out int, out ulong, out ulong?, out bool, out bool)

Section titled “Deconstruct(out int, out ulong, out ulong?, out bool, out bool)”

Parameters:

public void Deconstruct(out int Index, out ulong MinimumPages, out ulong? MaximumPages, out bool IsShared, out bool IsMemory64)

Parameters:

Returns: Boolean

public override bool Equals(object? obj)

Parameters:

Returns: Boolean

public bool Equals(WasmMemoryInfo? other)

Returns: Int32

public override int GetHashCode()

Returns: String

public override string ToString()

operator !=(WasmMemoryInfo?, WasmMemoryInfo?)

Section titled “operator !=(WasmMemoryInfo?, WasmMemoryInfo?)”

Parameters:

Returns: Boolean

public static bool operator !=(WasmMemoryInfo? left, WasmMemoryInfo? right)

operator ==(WasmMemoryInfo?, WasmMemoryInfo?)

Section titled “operator ==(WasmMemoryInfo?, WasmMemoryInfo?)”

Parameters:

Returns: Boolean

public static bool operator ==(WasmMemoryInfo? left, WasmMemoryInfo? right)