Show / Hide Table of Contents

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 Source

Mutability

Gets the mutability of the global.

Declaration
public Mutability Mutability { get; }
Property Value
Type Description
Mutability

Methods

| Improve this Doc View Source

GetValue()

Gets the value of the global.

Declaration
public T GetValue()
Returns
Type Description
T

Returns the global's value.

| Improve this Doc View Source

SetValue(T)

Sets the value of the global.

Declaration
public void SetValue(T value)
Parameters
Type Name Description
T value

The value to set.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX