[−][src]Trait lv2_core::port::PortPointerCache
Cache for port connection pointers.
The host will pass the port connection pointers one by one and in an undefined order. Therefore, the PortCollection
struct can not be created instantly. Instead, the pointers will be stored in a cache, which is then used to create a proper port collection for the plugin.
Required methods
fn connect(&mut self, index: u32, pointer: *mut c_void)
Store the connection pointer for the port with index index
.
The passed pointer may not be valid yet and therefore, implementors should only store the pointer, not dereference it.