flipperzero_sys

Function furi_stream_buffer_bytes_available

Source
pub unsafe extern "C" fn furi_stream_buffer_bytes_available(
    stream_buffer: *mut FuriStreamBuffer,
) -> usize
Expand description

Queries a stream buffer to see how much data it contains, which is equal to the number of bytes that can be read from the stream buffer before the stream buffer would be empty.

§Arguments

  • stream_buffer - The stream buffer instance.

§Returns

The number of bytes that can be read from the stream buffer before the stream buffer would be empty.