Global
zio.wasm.Global
final case class Global(globalType: GlobalType, init: Expr) extends Section[CoreIndexSpace]
The globals component of a module defines a vector of global variables (or globals for short):
Each global stores a single value of the given global type. Its type also specifies whether a global is immutable or mutable. Moreover, each global is initialized with an value given by a constant initializer expression.
Globals are referenced through global indices, starting with the smallest index not referencing a global import.
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Section[CoreIndexSpace]class Objecttrait Matchableclass Any
Members list
In this article