furi_stream_buffer_spaces_available

Function furi_stream_buffer_spaces_available 

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

Queries a stream buffer to see how much free space it contains, which is equal to the amount of data that can be sent to the stream buffer before it is full.

§Arguments

  • stream_buffer - The stream buffer instance.

§Returns

The number of bytes that can be written to the stream buffer before the stream buffer would be full.