pomp_buffer_new_copy

Function pomp_buffer_new_copy 

Source
pub unsafe extern "C" fn pomp_buffer_new_copy(
    buf: *const pomp_buffer,
) -> *mut pomp_buffer
Expand description

Create a new buffer with content copied from another buffer. @param buf : buffer to copy. @return new buffer with initial ref count at 1 and internal data copied from given buffer or NULL in case of error.