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

Method ptr

config.go:201–208  ·  view source on GitHub ↗

See comments in `ffi.go` for what's going on here

()

Source from the content-addressed store, hash-verified

199
200// See comments in `ffi.go` for what's going on here
201func (cfg *Config) ptr() *C.wasm_config_t {
202 ret := cfg._ptr
203 if ret == nil {
204 panic("Config has already been used up")
205 }
206 maybeGC()
207 return ret
208}
209
210// Close will deallocate this config's state explicitly.
211//

Callers 15

SetWasmThreadsMethod · 0.95
SetStrategyMethod · 0.95
SetCraneliftOptLevelMethod · 0.95
EnableCraneliftFlagMethod · 0.95
SetCraneliftFlagMethod · 0.95
SetWasmComponentModelMethod · 0.95
SetConcurrencySupportMethod · 0.95
SetDebugInfoMethod · 0.95
SetMaxWasmStackMethod · 0.95

Calls 1

maybeGCFunction · 0.70

Tested by

no test coverage detected