Skip to main content

Class Component

Represents a WebAssembly component.

Assembly: WaaS.Core.dll
View Source
Declaration
public class Component : IUnresolved<IComponent>

Implements:
WaaS.ComponentModel.Models.IUnresolved<T>

Properties

CustomSections

View Source
Declaration
public IEnumerable<CustomSection> CustomSections { get; }

Exports

View Source
Declaration
public IEnumerable<IExport<ISortedExportable>> Exports { get; }

Imports

View Source
Declaration
public IEnumerable<IImport<ISortedExportable>> Imports { get; }

Methods

ResolveFirstTime(IInstantiationContext)

View Source
Declaration
public IComponent ResolveFirstTime(IInstantiationContext context)
Returns

WaaS.ComponentModel.Runtime.IComponent

Parameters
TypeName
WaaS.ComponentModel.Runtime.IInstantiationContextcontext

Create(ReadOnlySpan<byte>)

Creates a new component from the given buffer.

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

WaaS.ComponentModel.Runtime.IComponent

Parameters
TypeName
System.ReadOnlySpan<System.Byte>buffer

Create(ReadOnlySequence<byte>)

Creates a new component from the given buffer.

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

WaaS.ComponentModel.Runtime.IComponent

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

Implements