@Override
  public void close() throws IOException {
    if (!mClosed) {
      mClosed = true;
      mResourceReleaser.release(mByteArray);
      super.close();
    }
  }
position of next buffered byte in mByteArray to be read

<p>invariant: 0 <= mBufferOffset <= mBufferedSize
fbcore/src/main/java/com/facebook/common/memory/PooledByteArrayBufferedInputStream.java