WasmModuleInfo
Namespace: Dotsider.Core.Analysis.Models
Assembly: Dotsider.Core.dll
Parsed facts for a WebAssembly module, including its functions and optional .NET symbol map.
public sealed record WasmModuleInfo : IEquatable<WasmModuleInfo>Inheritance
Section titled “Inheritance”Object → WasmModuleInfo
Implements
Section titled “Implements”Constructors
Section titled “Constructors”WasmModuleInfo(int, IReadOnlyList<WasmSectionInfo>, IReadOnlyList<WasmTypeInfo>, IReadOnlyList<WasmImportInfo>, IReadOnlyList<WasmExportInfo>, IReadOnlyList<WasmFunctionInfo>, IReadOnlyList<WasmTableInfo>, IReadOnlyList<WasmMemoryInfo>, IReadOnlyList<WasmGlobalInfo>, IReadOnlyList<WasmElementSegmentInfo>, IReadOnlyList<WasmDataSegmentInfo>, IReadOnlyList<WasmTagInfo>, int?, int?, IReadOnlyList<string>, IReadOnlyList<string>, string?, WasmSymbolMapStatus, int, string?)
Section titled “WasmModuleInfo(int, IReadOnlyList<WasmSectionInfo>, IReadOnlyList<WasmTypeInfo>, IReadOnlyList<WasmImportInfo>, IReadOnlyList<WasmExportInfo>, IReadOnlyList<WasmFunctionInfo>, IReadOnlyList<WasmTableInfo>, IReadOnlyList<WasmMemoryInfo>, IReadOnlyList<WasmGlobalInfo>, IReadOnlyList<WasmElementSegmentInfo>, IReadOnlyList<WasmDataSegmentInfo>, IReadOnlyList<WasmTagInfo>, int?, int?, IReadOnlyList<string>, IReadOnlyList<string>, string?, WasmSymbolMapStatus, int, string?)”Parsed facts for a WebAssembly module, including its functions and optional .NET symbol map.
Parameters:
Version(Int32): The WebAssembly binary version.Sections(IReadOnlyList<WasmSectionInfo>): The section table in file order.Types(IReadOnlyList<WasmTypeInfo>): The parsed function type entries.Imports(IReadOnlyList<WasmImportInfo>): The parsed import entries.Exports(IReadOnlyList<WasmExportInfo>): The parsed export entries.Functions(IReadOnlyList<WasmFunctionInfo>): Imported and defined functions in function-index order.Tables(IReadOnlyList<WasmTableInfo>): The parsed table declarations.Memories(IReadOnlyList<WasmMemoryInfo>): The parsed memory declarations.Globals(IReadOnlyList<WasmGlobalInfo>): The parsed global declarations.Elements(IReadOnlyList<WasmElementSegmentInfo>): The parsed element segments.DataSegments(IReadOnlyList<WasmDataSegmentInfo>): The parsed data segments.Tags(IReadOnlyList<WasmTagInfo>): The parsed exception tag declarations.StartFunctionIndex(Nullable<Int32>): The start function index, when present.DataCount(Nullable<Int32>): The data-count section value, when present.TargetFeatures(IReadOnlyList<String>): Feature names from thetarget_featurescustom section.ProducerFields(IReadOnlyList<String>): Producer strings from theproducerscustom section.SymbolMapPath(String): The symbol-map sidecar path, when loaded.SymbolMapStatus(WasmSymbolMapStatus): The symbol-map probe outcome.SymbolMapEntryCount(Int32): The number of parsed sidecar entries.Diagnostic(String): The reason standard-section parsing stopped after the safely decoded prefix, or null when all standard sections were decoded.
public WasmModuleInfo(int Version, IReadOnlyList<WasmSectionInfo> Sections, IReadOnlyList<WasmTypeInfo> Types, IReadOnlyList<WasmImportInfo> Imports, IReadOnlyList<WasmExportInfo> Exports, IReadOnlyList<WasmFunctionInfo> Functions, IReadOnlyList<WasmTableInfo> Tables, IReadOnlyList<WasmMemoryInfo> Memories, IReadOnlyList<WasmGlobalInfo> Globals, IReadOnlyList<WasmElementSegmentInfo> Elements, IReadOnlyList<WasmDataSegmentInfo> DataSegments, IReadOnlyList<WasmTagInfo> Tags, int? StartFunctionIndex, int? DataCount, IReadOnlyList<string> TargetFeatures, IReadOnlyList<string> ProducerFields, string? SymbolMapPath, WasmSymbolMapStatus SymbolMapStatus, int SymbolMapEntryCount, string? Diagnostic)Properties
Section titled “Properties”CodeSize
Section titled “CodeSize”The total byte count of all defined function instruction streams.
Returns: Int64
public long CodeSize { get; }DataCount
Section titled “DataCount”The data-count section value, when present.
Returns: Nullable<Int32>
public int? DataCount { get; init; }DataSegments
Section titled “DataSegments”The parsed data segments.
Returns: IReadOnlyList<WasmDataSegmentInfo>
public IReadOnlyList<WasmDataSegmentInfo> DataSegments { get; init; }DataSize
Section titled “DataSize”The total byte count of all data segments.
Returns: Int64
public long DataSize { get; }DefinedFunctionCount
Section titled “DefinedFunctionCount”The number of defined functions with code bodies in the module.
Returns: Int32
public int DefinedFunctionCount { get; }Diagnostic
Section titled “Diagnostic”The reason standard-section parsing stopped after the safely decoded prefix, or null when all standard sections were decoded.
Returns: String
public string? Diagnostic { get; init; }Elements
Section titled “Elements”The parsed element segments.
Returns: IReadOnlyList<WasmElementSegmentInfo>
public IReadOnlyList<WasmElementSegmentInfo> Elements { get; init; }Exports
Section titled “Exports”The parsed export entries.
Returns: IReadOnlyList<WasmExportInfo>
public IReadOnlyList<WasmExportInfo> Exports { get; init; }Functions
Section titled “Functions”Imported and defined functions in function-index order.
Returns: IReadOnlyList<WasmFunctionInfo>
public IReadOnlyList<WasmFunctionInfo> Functions { get; init; }Globals
Section titled “Globals”The parsed global declarations.
Returns: IReadOnlyList<WasmGlobalInfo>
public IReadOnlyList<WasmGlobalInfo> Globals { get; init; }ImportedFunctionCount
Section titled “ImportedFunctionCount”The number of imported functions in the module.
Returns: Int32
public int ImportedFunctionCount { get; }Imports
Section titled “Imports”The parsed import entries.
Returns: IReadOnlyList<WasmImportInfo>
public IReadOnlyList<WasmImportInfo> Imports { get; init; }Memories
Section titled “Memories”The parsed memory declarations.
Returns: IReadOnlyList<WasmMemoryInfo>
public IReadOnlyList<WasmMemoryInfo> Memories { get; init; }ProducerFields
Section titled “ProducerFields”Producer strings from the producers custom section.
Returns: IReadOnlyList<String>
public IReadOnlyList<string> ProducerFields { get; init; }Sections
Section titled “Sections”The section table in file order.
Returns: IReadOnlyList<WasmSectionInfo>
public IReadOnlyList<WasmSectionInfo> Sections { get; init; }StartFunctionIndex
Section titled “StartFunctionIndex”The start function index, when present.
Returns: Nullable<Int32>
public int? StartFunctionIndex { get; init; }SymbolMapEntryCount
Section titled “SymbolMapEntryCount”The number of parsed sidecar entries.
Returns: Int32
public int SymbolMapEntryCount { get; init; }SymbolMapPath
Section titled “SymbolMapPath”The symbol-map sidecar path, when loaded.
Returns: String
public string? SymbolMapPath { get; init; }SymbolMapStatus
Section titled “SymbolMapStatus”The symbol-map probe outcome.
Returns: WasmSymbolMapStatus
public WasmSymbolMapStatus SymbolMapStatus { get; init; }Tables
Section titled “Tables”The parsed table declarations.
Returns: IReadOnlyList<WasmTableInfo>
public IReadOnlyList<WasmTableInfo> Tables { get; init; }The parsed exception tag declarations.
Returns: IReadOnlyList<WasmTagInfo>
public IReadOnlyList<WasmTagInfo> Tags { get; init; }TargetFeatures
Section titled “TargetFeatures”Feature names from the target_features custom section.
Returns: IReadOnlyList<String>
public IReadOnlyList<string> TargetFeatures { get; init; }The parsed function type entries.
Returns: IReadOnlyList<WasmTypeInfo>
public IReadOnlyList<WasmTypeInfo> Types { get; init; }Version
Section titled “Version”The WebAssembly binary version.
Returns: Int32
public int Version { get; init; }