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

Function mkExtern

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

Source from the content-addressed store, hash-verified

17}
18
19func mkExtern(ptr *C.wasmtime_extern_t) *Extern {
20 f := &Extern{_ptr: ptr}
21 runtime.SetFinalizer(f, func(e *Extern) {
22 e.Close()
23 })
24 return f
25}
26
27func (e *Extern) ptr() *C.wasmtime_extern_t {
28 ret := e._ptr

Callers 4

GetExportMethod · 0.85
GetMethod · 0.85
ExportsMethod · 0.85
GetExportMethod · 0.85

Calls 1

CloseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…