MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime-go / ValI32

Function ValI32

val.go:18–20  ·  view source on GitHub ↗

ValI32 converts a go int32 to a i32 Val

(val int32)

Source from the content-addressed store, hash-verified

16
17// ValI32 converts a go int32 to a i32 Val
18func ValI32(val int32) Val {
19 return Val{kind: C.WASMTIME_I32, val: val}
20}
21
22// ValI64 converts a go int64 to a i64 Val
23func ValI64(val int64) Val {

Callers 6

mkValFunction · 0.85
TestGlobalFunction · 0.85
TestLinkerFunction · 0.85
TestFuncOneRetFunction · 0.85
TestWrongArgsPanicFunction · 0.85
goTrampolineWrapFunction · 0.85

Calls

no outgoing calls

Tested by 4

TestGlobalFunction · 0.68
TestLinkerFunction · 0.68
TestFuncOneRetFunction · 0.68
TestWrongArgsPanicFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…