docs: private boolean ensureDataInBuffer() throws IOException {
      if (mBufferOffset < mBufferedSize) {
        return true;
      }
  
      final int readData = mInputStream.read(mByteArray);
      if (readData <= 0) {
        return false;
      }
  
      mBufferedSize = readData;
      mBufferOffset = 0;
      return true;
    }