WasmStoreOptions Class

public sealed class WasmStoreOptions

Constructors

NameDescription
WasmStoreOptions()

WasmStoreOptions()

WasmRuntimeOptions.cs
public WasmStoreOptions()

No documentation is available.

Properties

NameDescription
CheckInterruptGets the action called periodically while WebAssembly code of the store runs (see WasmRuntimeOptions.InterruptionCheckInterval): it throws to interrupt the code, and the exception is thrown by the call into WebAssembly (e.g. a timeout, or CancellationToken.ThrowIfCancellationRequested).
MaxTableElementsGets the maximum number of elements of a table: a table that would be larger cannot grow (table.grow returns -1). The default is 10,000,000, the limit of the JavaScript API of WebAssembly.
SharedMemoryAllocatorGets the allocator of the bytes of the shared memories created by the store, or null to allocate pinned .NET arrays.

CheckInterrupt

WasmRuntimeOptions.cs

Gets the action called periodically while WebAssembly code of the store runs (see WasmRuntimeOptions.InterruptionCheckInterval): it throws to interrupt the code, and the exception is thrown by the call into WebAssembly (e.g. a timeout, or CancellationToken.ThrowIfCancellationRequested).

public Action? CheckInterrupt { get; init; }

Property value

Action?

MaxTableElements

WasmRuntimeOptions.cs

Gets the maximum number of elements of a table: a table that would be larger cannot grow (table.grow returns -1). The default is 10,000,000, the limit of the JavaScript API of WebAssembly.

public long MaxTableElements { get; init; }

Property value

long

SharedMemoryAllocator

WasmRuntimeOptions.cs

Gets the allocator of the bytes of the shared memories created by the store, or null to allocate pinned .NET arrays.

public WasmSharedMemoryAllocator? SharedMemoryAllocator { get; init; }