WasmGlobal Class
A global (a global address).
public abstract class WasmGlobal : WasmExtern- Inheritance
WasmExternWasmGlobal
Properties
| Name | Description |
|---|---|
| Kind | Gets the kind of the value. |
| Type | Gets the type of the global. |
Kind
WasmObjects.csType
Methods
| Name | Description |
|---|---|
| Get() | Reads the value (global_read). |
| Set(WasmValue) | Writes the value (global_write). |
Get()
Set(WasmValue)
Writes the value (global_write).
Parameters
valueWasmValue
Exceptions
WasmTypeMismatchException- The global is immutable, or the value does not match its type.