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)

Returns:

  • true if the operation was successful
  • false on error

Arguments

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