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

Function mkComponent

component_feat_component_model.go:56–62  ·  view source on GitHub ↗
(ptr *C.wasmtime_component_t, engine *Engine)

Source from the content-addressed store, hash-verified

54}
55
56func mkComponent(ptr *C.wasmtime_component_t, engine *Engine) *Component {
57 c := &Component{_ptr: ptr, engine: engine}
58 runtime.SetFinalizer(c, func(c *Component) {
59 c.Close()
60 })
61 return c
62}
63
64func (c *Component) ptr() *C.wasmtime_component_t {
65 ret := c._ptr

Callers 3

NewComponentFunction · 0.85
NewComponentDeserializeFunction · 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…