MCPcopy Create free account
hub / github.com/RustAudio/vst3-sys / owned

Method owned

com/src/ptr.rs:46–50  ·  view source on GitHub ↗

Adopt a pointer returned by a VST3 method call. This will return a `None` if the pointer is a null pointer. This function must be called whenever a method returns an interface opinter, even if you do not plan on using the value. Otherwise the object will leak. The object will be released when the last reference to it gets dropped. # Safety `ptr` must be a valid interface pointer for interface `

(ptr: *mut *mut <T as ComInterface>::VTable)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected