Wasmer PHP

Instance

Table of Contents

__construct()  : mixed
Create a Wasm\Module\Extern from a `wasm_instance_t` resource.
exports()  : Extern
inner()  : resource
Return the inner extern resource.
new()  : self

Methods

__construct()

Create a Wasm\Module\Extern from a `wasm_instance_t` resource.

public __construct( $instance) : mixed
Parameters
$instance :

resource a wasm_instance_t resource

Tags
throws
InvalidArgumentException

If the $instance argument is not a valid wasm_instance_t resource

Return values
mixed

inner()

Return the inner extern resource.

public inner() : resource
Return values
resource

A wasm_instance_t resource

Search results