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

Method ptr

module.go:27–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25}
26
27func (m *Module) ptr() *C.wasmtime_module_t {
28 ret := m._ptr
29 if ret == nil {
30 panic("object has been closed already")
31 }
32 maybeGC()
33 return ret
34}
35
36// Close will deallocate this module's state explicitly.
37//

Callers 5

SerializeMethod · 0.95
ImportsMethod · 0.95
ExportsMethod · 0.95
NewModuleDeserializeFunction · 0.45
NewModuleDeserializeFileFunction · 0.45

Calls 1

maybeGCFunction · 0.70

Tested by

no test coverage detected