riot_sys::bindgen

Function 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.