[][src]Function mmal_sys::mmal_buffer_header_replicate

pub unsafe extern "C" fn mmal_buffer_header_replicate(
    dest: *mut MMAL_BUFFER_HEADER_T,
    src: *mut MMAL_BUFFER_HEADER_T
) -> Type

Replicate a buffer header into another one. Replicating a buffer header will not only do an exact copy of all the public fields of the buffer header (including data and alloc_size), but it will also acquire a reference to the source buffer header which will only be released once the replicate has been released.

@param dest buffer header into which to replicate @param src buffer header to use as the source for the replication @return MMAL_SUCCESS on success