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

Function ValFuncref

val.go:40–42  ·  view source on GitHub ↗

ValFuncref converts a Func to a funcref Val Note that `f` can be `nil` to represent a null `funcref`.

(f *Func)

Source from the content-addressed store, hash-verified

38//
39// Note that `f` can be `nil` to represent a null `funcref`.
40func ValFuncref(f *Func) Val {
41 return Val{kind: C.WASMTIME_FUNCREF, val: f}
42}
43
44// mkValGC is overridden in val_feat_gc.go when GC support is compiled in to
45// handle GC kinds such as `externref`.

Callers 3

TestTableFunction · 0.85
mkValFunction · 0.85
goTrampolineWrapFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestTableFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…