public int getSize() {
    if (mPooledByteBufferRef != null && mPooledByteBufferRef.get() != null) {
      return mPooledByteBufferRef.get().size();
    }
    return mStreamSize;
  }
Returns the size of the backing structure.

<p>If it's a PooledByteBuffer returns its size if its not null, -1 otherwise. If it's an
InputStream, return the size if it was set, -1 otherwise.
imagepipeline-base/src/main/java/com/facebook/imagepipeline/image/EncodedImage.java