pomp_buffer_new_with_data

Function pomp_buffer_new_with_data 

Source
pub unsafe extern "C" fn pomp_buffer_new_with_data(
    data: *const c_void,
    len: usize,
) -> *mut pomp_buffer
Expand description

Create a new buffer with content copied from given data. Internal length and capacity will be set to given data length. @param data : data to copy. @param len : length to copy. @return new buffer with initial ref count at 1 and internal data copied from given buffer or NULL in case of error.