@Override
  public int available() {
    return mPooledByteBuffer.size() - mOffset;
  }
Returns the number of bytes still available to read
fbcore/src/main/java/com/facebook/common/memory/PooledByteBufferInputStream.java