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

Function mkValType

valtype.go:56–64  ·  view source on GitHub ↗
(ptr *C.wasm_valtype_t, owner interface{})

Source from the content-addressed store, hash-verified

54}
55
56func mkValType(ptr *C.wasm_valtype_t, owner interface{}) *ValType {
57 valtype := &ValType{_ptr: ptr, _owner: owner}
58 if owner == nil {
59 runtime.SetFinalizer(valtype, func(valtype *ValType) {
60 valtype.Close()
61 })
62 }
63 return valtype
64}
65
66// Kind returns the corresponding `ValKind` for this `ValType`
67func (t *ValType) Kind() ValKind {

Callers 4

NewValTypeFunction · 0.85
ElementMethod · 0.85
convertTypeListMethod · 0.85
ContentMethod · 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…