Function riot_sys::ringbuffer_get

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

@brief Read and remove a number of elements from the ringbuffer. @param[in,out] rb Ringbuffer to operate on. @param[out] buf Buffer to write into. @param[in] n Read at most n elements. @returns Number of elements actually read.