Function riot_sys::ringbuffer_peek

source ·
pub unsafe extern "C" fn ringbuffer_peek(
    rb: *const ringbuffer_t,
    buf: *mut c_char,
    n: c_uint
) -> c_uint
Expand description

@brief Read, but don’t remove, the a number of element of the buffer. @param[in] rb Ringbuffer to operate on. @param[out] buf Buffer to write into. @param[in] n Read at most n elements. @returns Same as ringbuffer_get()