code: public synchronized void clear() {
  		for (int i = 0; i < planes; i++) {
  			readPointer[i] = writePointer[i] = 0;
  			bytesToRead[i] = 0;
  			bytesToWrite[i] = buffer[i].capacity();
  		}
  	}
docs: Resets the read and write pointers. The internal buffer remains unaffected.