MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / ValType

Method ValType

crates/c-api/include/wasmtime/types/val.hh:305–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303}
304
305inline ValType::ValType(const Engine &engine, const RefType &ty)
306 : ref(nullptr) {
307 wasmtime_ty.kind = WASMTIME_VALTYPE_KIND_REF;
308 wasmtime_reftype_clone(ty.capi(), &wasmtime_ty.reftype);
309 ptr.reset(wasmtime_valtype_to_wasm(engine.capi(), &wasmtime_ty));
310 ref = ptr.get();
311}
312
313inline ValType ValType::anyref() {
314 wasmtime_valtype_t ty;

Callers

nothing calls this directly

Calls 5

wasmtime_reftype_cloneFunction · 0.85
wasmtime_valtype_to_wasmFunction · 0.85
capiMethod · 0.45
resetMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected