Wasmer PHP

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
$global :

resource a wasm_global_t resource

Tags
throws
InvalidArgumentException

If the $global argument is not a valid wasm_global_t resource

Return values
mixed

inner()

Return the inner global resource.

public inner() : resource
Return values
resource

A wasm_global_t resource

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

Search results