code: private void newBuffer(int offset) {
      if (maxBufferSize >= 0) {
        buffer = new int[maxBufferSize];
        isByte = new boolean[maxBufferSize];
        bufferOffset = offset;
        currentBufferSize = 0;
      }
    }
docs: New buffer.
  
  @param offset the offset