Skip to content

WasmSectionInfo

Namespace: Dotsider.Core.Analysis.Models

Assembly: Dotsider.Core.dll

One section in a WebAssembly module, including custom sections.

public sealed record WasmSectionInfo : IEquatable<WasmSectionInfo>

ObjectWasmSectionInfo

One section in a WebAssembly module, including custom sections.

Parameters:

  • Id (Byte): The numeric section id.
  • Name (String): The standard section name, or the custom section name for id 0.
  • FileOffset (Int64): The file offset where section payload bytes begin.
  • Size (Int32): The section payload size in bytes.
public WasmSectionInfo(byte Id, string Name, long FileOffset, int Size)

The file offset where section payload bytes begin.

Returns: Int64

public long FileOffset { get; init; }

The numeric section id.

Returns: Byte

public byte Id { get; init; }

The standard section name, or the custom section name for id 0.

Returns: String

public string Name { get; init; }

The section payload size in bytes.

Returns: Int32

public int Size { get; init; }

Deconstruct(out byte, out string, out long, out int)

Section titled “Deconstruct(out byte, out string, out long, out int)”

Parameters:

public void Deconstruct(out byte Id, out string Name, out long FileOffset, out int Size)

Parameters:

Returns: Boolean

public override bool Equals(object? obj)

Parameters:

Returns: Boolean

public bool Equals(WasmSectionInfo? other)

Returns: Int32

public override int GetHashCode()

Returns: String

public override string ToString()

operator !=(WasmSectionInfo?, WasmSectionInfo?)

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

Parameters:

Returns: Boolean

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

operator ==(WasmSectionInfo?, WasmSectionInfo?)

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

Parameters:

Returns: Boolean

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