The `Darwin` engine uses `NSURLSession` internally...
# ktor
s
The
Darwin
engine uses
NSURLSession
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
It seems that's impossible because those implementation details are private or internal.
s
Maybe they should be exposed in the Apple sourcesets.