code: public void delete(int count) throws BufferSizeException {
          if ((count < 0) || (count > capacity())) {
              throw new IllegalArgumentException("Can only delete between 0 and " + capacity() + " bytes from buffer, you passed in=" + count);
          }
          if (count > size()) {
              throw new BufferSizeException("Buffer size (" + size() + ") not large enough to delete (" + count + ") bytes");
          }
          this.currentReadPosition = (this.currentReadPosition + count) % this.buffer.length;
          this.currentBufferSize -= count;
      }
docs: Deletes the first N bytes of the buffer.  Avoids allocating any memory
  since there is no return value for this method.  If you want to delete
  and also see the deleted data as a return value, please use the remove()
  methods.