Add NSData.toByteString()
and ByteString.toNSData()
for Apple targets
#266
Labels
Design
enhancement
integration
An issue related to the integration with other libraries or platform-specific APIs
It seems that
NSData
is the Foundation type to represent immutable byte arrays, which means it corresponds toByteString
in purpose. It would be great to have these conversions in thekotlinx-io-bytestring
lib by default.Example implementation:
Arguably, the
ByteArray
conversions could be part of the stdlib instead, andkotlinx-io-bytestring
could just build on top.The text was updated successfully, but these errors were encountered: