setBufferPosition method
Sets the current read position in the buffer.
bufferPosition The new position (must be within buffer bounds)
Implementation
void setBufferPosition(int bufferPosition) {
// if (bufferPosition < 0 || bufferPosition >= _bufferData.length) {
// _log.warning("Cannot set bufferPosition $bufferPosition because we have only ${_bufferData.length} bytes available");
// }
assert(bufferPosition >= 0 && bufferPosition < _bufferData.length);
_bufferPosition = bufferPosition;
}