pub unsafe extern "C" fn pomp_buffer_write(
buf: *mut pomp_buffer,
pos: *mut usize,
data: *const c_void,
len: usize,
) -> c_intExpand description
Write data to the buffer at the given position. @param buf : buffer. @param pos : position in the buffer (will be updated after success) @param data : data to write. @param len : length of the data to write. @return 0 in case of success, negative errno value in case of error. -EPERM is returned if the buffer is shared.
@remarks Can re-allocate the internal data buffer and invalidate the data/cdata retrieved before.