
`InputStream.available()` is implementation-dependent, should never assume it will return the total number of bytes in the stream. (cherry picked from commit d0e64d3a66d227ca61fc8d956b03cab5ac3b84f0) # Conflicts: # core/common/src/main/kotlin/tachiyomi/core/common/util/system/ImageUtil.kt