Skip to content
Commit 0ca511a4 authored by Christopher Friedt's avatar Christopher Friedt
Browse files

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: default avatarChristopher Friedt <chrisfriedt@gmail.com>
parent 97adf875
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment