seek method
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;
}
Seek. Sets the position in the buffer. If overflow occurs the position is set to the end of the buffer.
void seek(int seek) {
_position = (seek <= length) && (seek >= 0) ? seek : length;
}