JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
15.99k stars 1.16k forks source link

fix(Resources): Use readNBytes() to read a chunk of resources #4938 #4939

Closed AChep closed 3 months ago

AChep commented 3 months ago

Fixes https://github.com/JetBrains/compose-multiplatform/issues/4938 The idea is that both .skip() and .read() may skip and read less bytes that requested.

Sections:

Subsections:

terrakok commented 3 months ago

Thank you for the fix. I did it by my own for both targets: android + jvm. https://github.com/JetBrains/compose-multiplatform/pull/4943