rewind method

  1. @override
void rewind (
  1. [int length = 1]
)
override

Rewind the read head of the stream by the given number of bytes.

Implementation

@override
void rewind([int length = 1]) {
  offset -= length;
  if (offset < 0) {
    offset = 0;
  }
}