pub unsafe extern "C" fn stream_delete(
    stream: *mut Stream,
    size: usize
) -> bool
Expand description

Remove N chars from the stream, starting at the current pointer. The size may be larger than stream size, the stream will be cleared from current RW pointer to the end.

Returns:

  • true if the operation was successful
  • false on error

Arguments

  • stream - Stream instance
  • size - how many chars need to be deleted