pub unsafe extern "C" fn pomp_buffer_new_with_data(
data: *const c_void,
len: usize,
) -> *mut pomp_bufferExpand 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.