seek method

void seek(
  1. int seek
)

Seek. Sets the position in the buffer. If overflow occurs the position is set to the end of the buffer.

Implementation

void seek(int seek) {
  _position = (seek <= length) && (seek >= 0) ? seek : length;
}