WasmtimeRuntimeOptions Class
Options of a WasmtimeRuntime.
public sealed class WasmtimeRuntimeOptionsConstructors
| Name | Description |
|---|---|
| WasmtimeRuntimeOptions() |
WasmtimeRuntimeOptions()
WasmtimeRuntimeOptions.cspublic WasmtimeRuntimeOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| InterruptionCheckInterval | Gets the interval at which the running WebAssembly code checks whether it must be interrupted (e.g. the timeout of the script engine). The default is 10 milliseconds. |
| MaxMemorySize | Gets the maximum size of a memory, in bytes. The default and the upper limit is the maximum length of a .NET array (the memories are .NET arrays, so that the ArrayBuffer objects of JavaScript share their bytes): a memory that would be larger cannot grow. |
| MaxStackSize | Gets the maximum size of the stack of the WebAssembly code, in bytes. The default is 512 KiB. A deeper recursion throws the exception of a stack overflow of JavaScript (a RangeError). |
InterruptionCheckInterval
WasmtimeRuntimeOptions.csMaxMemorySize
WasmtimeRuntimeOptions.csGets the maximum size of a memory, in bytes. The default and the upper limit is the maximum length of a .NET array (the memories are .NET arrays, so that the ArrayBuffer objects of JavaScript share their bytes): a memory that would be larger cannot grow.
public long MaxMemorySize { get; init; }