flipperzero_sys

Function stream_delete_and_insert

Source
pub unsafe extern "C" fn stream_delete_and_insert(
    stream: *mut Stream,
    delete_size: usize,
    write_callback: StreamWriteCB,
    context: *const c_void,
) -> bool
Expand description

Delete N chars from the stream and write data by calling write_callback(context)

§Arguments

  • stream - Stream instance
  • delete_size - size of data to be deleted
  • write_callback - write callback
  • context - write callback context

§Returns

true if the operation was successful false on error