docs: @VisibleForTesting
    void realloc(int newLength) {
      ensureValid();
      /* Can the buffer handle @i more bytes, if not expand it */
      if (newLength <= mBufRef.get().getSize()) {
        return;
      }
      MemoryChunk newbuf = mPool.get(newLength);
      mBufRef.get().copy(0, newbuf, 0, mCount);
      mBufRef.close();
      mBufRef = CloseableReference.of(newbuf, mPool);
    }