Func
Table of Contents
- __construct() : mixed
- Create a Wasm\Module\Func from a `wasm_func_t` resource.
- __invoke() : Val
- asExtern() : Extern
- inner() : resource
- Return the inner func resource.
- new() : self
- paramArity() : int
- resultArity() : int
- type() : FuncType
Methods
__construct()
Create a Wasm\Module\Func from a `wasm_func_t` resource.
public
__construct( $func) : mixed
Parameters
Tags
Return values
mixed —__invoke()
public
__invoke([Val|null $args = null ]) : Val
Parameters
- $args : Val|null = null
Return values
Val —asExtern()
public
asExtern() : Extern
Return values
Extern —inner()
Return the inner func resource.
public
inner() : resource
Return values
resource —A wasm_func_t
resource
new()
public
static new(Store $store, FuncType $functype, callable $func) : self
Parameters
Return values
self —paramArity()
public
paramArity() : int
Return values
int —resultArity()
public
resultArity() : int
Return values
int —type()
public
type() : FuncType