[][src]Function flac_sys::FLAC__metadata_object_clone

pub unsafe extern "C" fn FLAC__metadata_object_clone(
    object: *const FLAC__StreamMetadata
) -> *mut FLAC__StreamMetadata

Create a copy of an existing metadata object.

The copy is a "deep" copy, i.e. dynamically allocated data within the object is also copied. The caller takes ownership of the new block and is responsible for freeing it with FLAC__metadata_object_delete().

\param object Pointer to object to copy. \assert \code object != NULL \endcode \retval FLAC__StreamMetadata* \c NULL if there was an error allocating memory, else the new instance.