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

Function mkError

error.go:11–17  ·  view source on GitHub ↗
(ptr *C.wasmtime_error_t)

Source from the content-addressed store, hash-verified

9}
10
11func mkError(ptr *C.wasmtime_error_t) *Error {
12 err := &Error{_ptr: ptr}
13 runtime.SetFinalizer(err, func(err *Error) {
14 err.Close()
15 })
16 return err
17}
18
19func (e *Error) ptr() *C.wasmtime_error_t {
20 ret := e._ptr

Callers 15

NewGlobalFunction · 0.85
SetMethod · 0.85
DefineWasiMethod · 0.85
NewModuleFunction · 0.85
ModuleValidateFunction · 0.85
SerializeMethod · 0.85
GetFuelMethod · 0.85
SetFuelMethod · 0.85
NewTableFunction · 0.85
GrowMethod · 0.85
SetMethod · 0.85
NewComponentFunction · 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…