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

Method i32

crates/c-api/include/wasm.hh:533–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531 auto is_ref() const -> bool { return wasm::is_ref(kind_); }
532
533 static auto i32(int32_t x) -> Val { return Val(x); }
534 static auto i64(int64_t x) -> Val { return Val(x); }
535 static auto f32(float32_t x) -> Val { return Val(x); }
536 static auto f64(float64_t x) -> Val { return Val(x); }

Callers 5

TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45

Calls 2

assertFunction · 0.85
ValClass · 0.70

Tested by 5

TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36