Class Global.Accessor<T>
A typed accessor for a WebAssembly global value.
Inheritance
System.Object
Global.Accessor<T>
Namespace: Wasmtime
Assembly: Wasmtime.Dotnet.dll
Syntax
public class Accessor<T> : object
Type Parameters
Name | Description |
---|---|
T | Type of the global being accessed. |
Properties
| Improve this Doc View SourceMutability
Gets the mutability of the global.
Declaration
public Mutability Mutability { get; }
Property Value
Type | Description |
---|---|
Mutability |
Methods
| Improve this Doc View SourceGetValue()
Gets the value of the global.
Declaration
public T GetValue()
Returns
Type | Description |
---|---|
T | Returns the global's value. |
SetValue(T)
Sets the value of the global.
Declaration
public void SetValue(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value to set. |