WasmtimeRuntimeOptions Class

Options of a WasmtimeRuntime.

public sealed class WasmtimeRuntimeOptions

Constructors

NameDescription
WasmtimeRuntimeOptions()

WasmtimeRuntimeOptions()

WasmtimeRuntimeOptions.cs
public WasmtimeRuntimeOptions()

No documentation is available.

Properties

NameDescription
InterruptionCheckIntervalGets 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.
MaxMemorySizeGets 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.
MaxStackSizeGets 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.cs

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.

public TimeSpan InterruptionCheckInterval { get; init; }

Property value

TimeSpan

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.

public long MaxMemorySize { get; init; }

Property value

long

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).

public int MaxStackSize { get; init; }

Property value

int