WasmFuncType.fromNative constructor

WasmFuncType.fromNative(
  1. Pointer<wasm_functype_t> type
)

Reads a borrowed wasm_functype_t.

Implementation

factory WasmFuncType.fromNative(ffi.Pointer<c.wasm_functype_t> type) =>
    WasmFuncType(
      parameters: _readValTypes(c.wasm_functype_params(type)),
      results: _readValTypes(c.wasm_functype_results(type)),
    );