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>Inheritance
Section titled “Inheritance”Object → WasmSectionInfo
Implements
Section titled “Implements”Constructors
Section titled “Constructors”WasmSectionInfo(byte, string, long, int)
Section titled “WasmSectionInfo(byte, string, long, int)”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)Properties
Section titled “Properties”FileOffset
Section titled “FileOffset”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; }Methods
Section titled “Methods”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)Equals(object?)
Section titled “Equals(object?)”Parameters:
obj(Object)
Returns: Boolean
public override bool Equals(object? obj)Equals(WasmSectionInfo?)
Section titled “Equals(WasmSectionInfo?)”Parameters:
other(WasmSectionInfo)
Returns: Boolean
public bool Equals(WasmSectionInfo? 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 !=(WasmSectionInfo?, WasmSectionInfo?)
Section titled “operator !=(WasmSectionInfo?, WasmSectionInfo?)”Parameters:
left(WasmSectionInfo)right(WasmSectionInfo)
Returns: Boolean
public static bool operator !=(WasmSectionInfo? left, WasmSectionInfo? right)operator ==(WasmSectionInfo?, WasmSectionInfo?)
Section titled “operator ==(WasmSectionInfo?, WasmSectionInfo?)”Parameters:
left(WasmSectionInfo)right(WasmSectionInfo)
Returns: Boolean
public static bool operator ==(WasmSectionInfo? left, WasmSectionInfo? right)