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

Method ptr

trap.go:72–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70}
71
72func (t *Trap) ptr() *C.wasm_trap_t {
73 ret := t._ptr
74 if ret == nil {
75 panic("object has been closed already")
76 }
77 maybeGC()
78 return ret
79}
80
81// Close will deallocate this type's state explicitly.
82//

Callers 15

goTrampolineNewFunction · 0.95
goTrampolineWrapFunction · 0.95
MessageMethod · 0.95
CodeMethod · 0.95
FramesMethod · 0.95
NewGlobalFunction · 0.45
SetWasiMethod · 0.45
NewModuleFunction · 0.45
ModuleValidateFunction · 0.45
NewTableFunction · 0.45
NewFuncFunction · 0.45
WrapFuncFunction · 0.45

Calls 1

maybeGCFunction · 0.70

Tested by

no test coverage detected