WasmStoreOptions Class
Options of a WasmStore (see WasmRuntime.CreateStore).
public sealed class WasmStoreOptionsConstructors
| Name | Description |
|---|---|
| WasmStoreOptions() |
WasmStoreOptions()
WasmRuntimeOptions.cspublic WasmStoreOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| CheckInterrupt | 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). |
| MaxTableElements | 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. |
| SharedMemoryAllocator | Gets the allocator of the bytes of the shared memories created by the store, or null to allocate pinned .NET arrays. |
CheckInterrupt
WasmRuntimeOptions.csGets 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; }