Val
Table of Contents
- __construct() : mixed
- Create a Wasm\Module\Val from a `wasm_val_t` resource.
- inner() : resource
- Return the inner val resource.
- kind() : int
- new() : self
- newF32() : self
- newF64() : self
- newI32() : self
- newI64() : self
- value() : int|float
Methods
__construct()
Create a Wasm\Module\Val from a `wasm_val_t` resource.
public
__construct( $val) : mixed
Parameters
Tags
Return values
mixed —inner()
Return the inner val resource.
public
inner() : resource
Return values
resource —A wasm_val_t
resource
kind()
public
kind() : int
Return values
int —new()
public
static new(mixed $val) : self
Parameters
- $val : mixed
Return values
self —newF32()
public
static newF32(float $val) : self
Parameters
- $val : float
Return values
self —newF64()
public
static newF64(float $val) : self
Parameters
- $val : float
Return values
self —newI32()
public
static newI32(int $val) : self
Parameters
- $val : int
Return values
self —newI64()
public
static newI64(int $val) : self
Parameters
- $val : int
Return values
self —value()
public
value() : int|float