[][src]Function memflow_ffi::connectors::connector_clone

#[no_mangle]pub unsafe extern "C" fn connector_clone(
    conn: &CloneablePhysicalMemoryObj
) -> &'static mut CloneablePhysicalMemoryObj

Clone a connector

This method is useful when needing to perform multithreaded operations, as a connector is not guaranteed to be thread safe. Every single cloned instance also needs to be freed using connector_free.

Safety

conn has to point to a a valid CloneablePhysicalMemory created by one of the provided functions.