Skip to main content

Class Module

Represents a core WebAssembly module.

Assembly: WaaS.Core.dll​
View Source​
Declaration
public class Module

Properties​

Preamble​

View Source​
Declaration
public Preamble Preamble { get; }

Sections​

View Source​
Declaration
public ReadOnlyMemory<Section> Sections { get; }

InternalFunctions​

View Source​
Declaration
public ReadOnlyMemory<Function> InternalFunctions { get; }

MemorySection​

View Source​
Declaration
public MemorySection MemorySection { get; }

ImportSection​

View Source​
Declaration
public ImportSection ImportSection { get; }

GlobalSection​

View Source​
Declaration
public GlobalSection GlobalSection { get; }

ElementSection​

View Source​
Declaration
public ElementSection ElementSection { get; }

TableSection​

View Source​
Declaration
public TableSection TableSection { get; }

DataSection​

View Source​
Declaration
public DataSection DataSection { get; }

DataCountSection​

View Source​
Declaration
public DataCountSection DataCountSection { get; }

StartSection​

View Source​
Declaration
public StartSection StartSection { get; }

ExportSection​

View Source​
Declaration
public ExportSection ExportSection { get; }

TypeSection​

View Source​
Declaration
public TypeSection TypeSection { get; }

SourceDescription​

View Source​
Declaration
public string SourceDescription { get; set; }

ImportedFunctionCount​

Number of the imported functions. The index of an internal function in the function index space is ImportedFunctionCount + Function.FunctionIndex.

View Source​
Declaration
public int ImportedFunctionCount { get; }

ImportedGlobalCount​

View Source​
Declaration
public int ImportedGlobalCount { get; }

FunctionCount​

The numbers of the items in the index spaces, including the imported ones.

View Source​
Declaration
public int FunctionCount { get; }

TableCount​

View Source​
Declaration
public int TableCount { get; }

MemoryCount​

View Source​
Declaration
public int MemoryCount { get; }

GlobalCount​

View Source​
Declaration
public int GlobalCount { get; }

Names​

Names in the "name" custom section. Empty if the module does not have the section. The section is parsed when this property is accessed first.

View Source​
Declaration
public NameSection Names { get; }

LineTable​

The line number table in the DWARF debugging information, or null if the module does not have it. The table is read when this property is accessed first.

View Source​
Declaration
public DwarfLineTable LineTable { get; }

Methods​

Create(ReadOnlySpan<byte>)​

View Source​
Declaration
public static Module Create(ReadOnlySpan<byte> buffer)
Returns​

WaaS.Models.Module

Parameters​
TypeName
System.ReadOnlySpan<System.Byte>buffer

Create(ReadOnlySequence<byte>)​

View Source​
Declaration
public static Module Create(ReadOnlySequence<byte> buffer)
Returns​

WaaS.Models.Module

Parameters​
TypeName
System.Buffers.ReadOnlySequence<System.Byte>buffer