pub unsafe extern "C" fn furi_stream_buffer_send(
    stream_buffer: *mut c_void,
    data: *const c_void,
    length: usize,
    timeout: u32
) -> usize
Expand description

@brief Sends bytes to a stream buffer. The bytes are copied into the stream buffer. Wakes up task waiting for data to become available if called from ISR.

@param stream_buffer The stream buffer instance. @param data A pointer to the data that is to be copied into the stream buffer. @param length The maximum number of bytes to copy from data into the stream buffer. @param timeout The maximum amount of time the task should remain in the Blocked state to wait for space to become available if the stream buffer is full. Will return immediately if timeout is zero. Setting timeout to FuriWaitForever will cause the task to wait indefinitely. Ignored if called from ISR. @return The number of bytes actually written to the stream buffer.