WasmMemoryInfo
Namespace: Dotsider.Core.Analysis.Models
Assembly: Dotsider.Core.dll
One WebAssembly memory declaration.
public sealed record WasmMemoryInfo : IEquatable<WasmMemoryInfo>Inheritance
Section titled “Inheritance”Object → WasmMemoryInfo
Implements
Section titled “Implements”Constructors
Section titled “Constructors”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)Properties
Section titled “Properties”The zero-based memory index.
Returns: Int32
public int Index { get; init; }IsMemory64
Section titled “IsMemory64”Whether the memory uses 64-bit indices.
Returns: Boolean
public bool IsMemory64 { get; init; }IsShared
Section titled “IsShared”Whether the memory is declared shared.
Returns: Boolean
public bool IsShared { get; init; }MaximumPages
Section titled “MaximumPages”The maximum memory page count when one is declared.
Returns: Nullable<UInt64>
public ulong? MaximumPages { get; init; }MinimumPages
Section titled “MinimumPages”The minimum memory page count.
Returns: UInt64
public ulong MinimumPages { get; init; }Methods
Section titled “Methods”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:
Index(Int32)MinimumPages(UInt64)MaximumPages(Nullable<UInt64>)IsShared(Boolean)IsMemory64(Boolean)
public void Deconstruct(out int Index, out ulong MinimumPages, out ulong? MaximumPages, out bool IsShared, out bool IsMemory64)Equals(object?)
Section titled “Equals(object?)”Parameters:
obj(Object)
Returns: Boolean
public override bool Equals(object? obj)Equals(WasmMemoryInfo?)
Section titled “Equals(WasmMemoryInfo?)”Parameters:
other(WasmMemoryInfo)
Returns: Boolean
public bool Equals(WasmMemoryInfo? other)GetHashCode()
Section titled “GetHashCode()”Returns: Int32
public override int GetHashCode()ToString()
Section titled “ToString()”Returns: String
public override string ToString()Members
Section titled “Members”operator !=(WasmMemoryInfo?, WasmMemoryInfo?)
Section titled “operator !=(WasmMemoryInfo?, WasmMemoryInfo?)”Parameters:
left(WasmMemoryInfo)right(WasmMemoryInfo)
Returns: Boolean
public static bool operator !=(WasmMemoryInfo? left, WasmMemoryInfo? right)operator ==(WasmMemoryInfo?, WasmMemoryInfo?)
Section titled “operator ==(WasmMemoryInfo?, WasmMemoryInfo?)”Parameters:
left(WasmMemoryInfo)right(WasmMemoryInfo)
Returns: Boolean
public static bool operator ==(WasmMemoryInfo? left, WasmMemoryInfo? right)