Globl
Table of Contents
- __construct() : mixed
- Create a Wasm\Module\Globl from a `wasm_global_t` resource.
- asExtern() : Extern
- get() : Val
- inner() : resource
- Return the inner global resource.
- new() : self
- same() : bool
- set() : void
- type() : GlobalType
Methods
__construct()
Create a Wasm\Module\Globl from a `wasm_global_t` resource.
public
__construct( $global) : mixed
Parameters
Tags
Return values
mixed —asExtern()
public
asExtern() : Extern
Return values
Extern —get()
public
get() : Val
Return values
Val —inner()
Return the inner global resource.
public
inner() : resource
Return values
resource —A wasm_global_t
resource
new()
public
static new(Store $store, GlobalType $globaltype, int|float|Val $val) : self
Parameters
- $store : Store
- $globaltype : GlobalType
- $val : int|float|Val
Return values
self —same()
public
same(self $other) : bool
Parameters
- $other : self
Return values
bool —set()
public
set(int|float|Val $value) : void
Parameters
- $value : int|float|Val
Return values
void —type()
public
type() : GlobalType