Is there any way to parse NSData to BufferedSource...
# multiplatform
j
Is there any way to parse NSData to BufferedSource using okio in iOS main
s
Maybe something like
Copy code
Buffer().write(data.toByteString())
j
I am getting error in iOS part
unable use okio buffered return
j
I've got a PR to do this via
NSInputStream
. See usage examples in AppleSourceTest. Unfortunately only available once the PR is merged and released though. Other solutions could copy the
NSData
to a
ByteArray
first, if that's not an issue.