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

Method Close

valtype.go:98–105  ·  view source on GitHub ↗

Close will deallocate this type's state explicitly. For more information see the documentation for engine.Close()

()

Source from the content-addressed store, hash-verified

96//
97// For more information see the documentation for engine.Close()
98func (ty *ValType) Close() {
99 if ty._ptr == nil || ty._owner != nil {
100 return
101 }
102 runtime.SetFinalizer(ty, nil)
103 C.wasm_valtype_delete(ty._ptr)
104 ty._ptr = nil
105}

Callers 1

mkValTypeFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected