https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
m

mbonnin

11/13/2019, 6:13 PM
Is there a MPP equivalent to
ByteArrayOutputStream
? Something that: • I can write to • Grows automatically • I can get a
ByteArray
from once I'm done
d

Dominaezzz

11/13/2019, 6:27 PM
I think Okio has something.
m

mbonnin

11/13/2019, 6:27 PM
Is okio multiplatform nowadays ?
But I doubt it'll do what I want. IIRC okio uses "segments" and I need a contiguous
ByteArray
to feed ktor
I ended up writing my own for now
11 Views