pomp_buffer_get_data

Function pomp_buffer_get_data 

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

Get internal buffer data for read/write. @param buf : buffer. @param data : data of buffer (optional can be NULL). @param len : used length of buffer (optional can be NULL). @param capacity : capacity of buffer (optional can be NULL). @return 0 in case of success, negative errno value in case of error. -EPERM is returned if the buffer is shared.