Skip to main content

cdc_peek

Function cdc_peek 

Source
pub(crate) fn cdc_peek(out: &mut [u8]) -> usize
Expand description

Copy as much pending data as fits into out without consuming it.

Returns the number of bytes copied (0 when the ring is empty).