internally. If I load a bytes from a webservice in common code this is of course a Kotlin
ByteArray
. I assume this must be converted from
NSData
internally.
Since skiko can now read an
Image
directly from
NSData
without the need to have it converted to
ByteArray
first, I wonder if there is a way that I can get
NSData
from a ktor call without the conversion.
This should have a positive effect on memory consumption if this is done in masses for a photo app like Ashampoo Photos.
Is it possible?
a
Aleksei Tirman [JB]
03/21/2024, 7:17 PM
It seems that's impossible because those implementation details are private or internal.
s
Stefan Oltmann
03/21/2024, 7:18 PM
Maybe they should be exposed in the Apple sourcesets.