FuncType
Function types classify the signature of functions, mapping a vector of parameters to a vector of results. They are also used to classify the inputs and outputs of instructions.
Tags
Table of Contents
- __construct() : mixed
- Create a Wasm\Type\FuncType from a `wasm_functype_t` resource.
- asExternType() : ExternType
- inner() : resource
- Return the inner function type resource.
- new() : self
- params() : ValType
- results() : ValType
Methods
__construct()
Create a Wasm\Type\FuncType from a `wasm_functype_t` resource.
public
__construct( $functype) : mixed
Parameters
Tags
Return values
mixed —asExternType()
public
asExternType() : ExternType
Return values
ExternType —inner()
Return the inner function type resource.
public
inner() : resource
Return values
resource —A wasm_functype_t
resource
new()
public
static new(ValType $params, ValType $results) : self
Parameters
Return values
self —params()
public
params() : ValType
Return values
ValType —results()
public
results() : ValType