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

Method ptr

wasi.go:25–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23}
24
25func (c *WasiConfig) ptr() *C.wasi_config_t {
26 ret := c._ptr
27 if ret == nil {
28 panic("object has been closed already")
29 }
30 maybeGC()
31 return ret
32}
33
34// Close will deallocate this WASI configuration's state explicitly.
35//

Callers 11

SetArgvMethod · 0.95
InheritArgvMethod · 0.95
SetEnvMethod · 0.95
InheritEnvMethod · 0.95
SetStdinFileMethod · 0.95
InheritStdinMethod · 0.95
SetStdoutFileMethod · 0.95
InheritStdoutMethod · 0.95
SetStderrFileMethod · 0.95
InheritStderrMethod · 0.95
PreopenDirMethod · 0.95

Calls 1

maybeGCFunction · 0.70

Tested by

no test coverage detected