fromCKind static method

WasmValueKind fromCKind(
  1. int kind
)

Implementation

static WasmValueKind fromCKind(int kind) => switch (kind) {
  c.WASMTIME_I32 => i32,
  c.WASMTIME_I64 => i64,
  c.WASMTIME_F32 => f32,
  c.WASMTIME_F64 => f64,
  c.WASMTIME_V128 => v128,
  c.WASMTIME_FUNCREF => funcRef,
  c.WASMTIME_EXTERNREF => externRef,
  c.WASMTIME_ANYREF => anyRef,
  _ => throw UnsupportedError('Unknown value kind $kind'),
};