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

Function mkModule

module.go:19–25  ·  view source on GitHub ↗
(ptr *C.wasmtime_module_t)

Source from the content-addressed store, hash-verified

17}
18
19func mkModule(ptr *C.wasmtime_module_t) *Module {
20 module := &Module{_ptr: ptr}
21 runtime.SetFinalizer(module, func(module *Module) {
22 module.Close()
23 })
24 return module
25}
26
27func (m *Module) ptr() *C.wasmtime_module_t {
28 ret := m._ptr

Callers 3

NewModuleFunction · 0.85
NewModuleDeserializeFunction · 0.85
NewModuleDeserializeFileFunction · 0.85

Calls 1

CloseMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…