WasmComponent Class

A compiled component (https://github.com/WebAssembly/component-model): it is instantiated by WasmStore.InstantiateComponent.

public sealed class WasmComponent

Properties

NameDescription
BytesGets the binary of the component.
ExportsGets the exports of the component: their names and kinds.
ImportsGets the imports of the component: their names and kinds.
RuntimeGets the runtime that compiled the component.

Gets the binary of the component.

public ReadOnlyMemory<byte> Bytes { get; }

Property value

ReadOnlyMemory<byte>

Gets the exports of the component: their names and kinds.

public IReadOnlyList<WasmComponentImport> Exports { get; }

Gets the imports of the component: their names and kinds.

public IReadOnlyList<WasmComponentImport> Imports { get; }

Gets the runtime that compiled the component.

public WasmRuntime Runtime { get; }

Property value

WasmRuntime