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

Function mkImportType

importtype.go:33–41  ·  view source on GitHub ↗
(ptr *C.wasm_importtype_t, owner interface{})

Source from the content-addressed store, hash-verified

31}
32
33func mkImportType(ptr *C.wasm_importtype_t, owner interface{}) *ImportType {
34 importtype := &ImportType{_ptr: ptr, _owner: owner}
35 if owner == nil {
36 runtime.SetFinalizer(importtype, func(importtype *ImportType) {
37 importtype.Close()
38 })
39 }
40 return importtype
41}
42
43func (ty *ImportType) ptr() *C.wasm_importtype_t {
44 ret := ty._ptr

Callers 2

NewImportTypeFunction · 0.85
mkGoListMethod · 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…