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) {
  if ((seek <= length) && (seek >= 0)) {
    _position = seek;
  } else {
    _position = length;
  }
}