sys: ring_buffer: ring_buf_peek() and ring_buf_size_get()
Add ring_buf_size_get() to get the number of bytes currently available
in the ring buffer.
Add ring_buf_peek() to read data from the head of a ring buffer without
removal.
Fixes #37145
Signed-off-by:
Christopher Friedt <chrisfriedt@gmail.com>
Loading
Please sign in to comment