Replace ByteString(ByteArray)
constructor with ByteArray.toByteString()
#260
Labels
ByteString(ByteArray)
constructor with ByteArray.toByteString()
#260
This current "safe" constructor doesn't feel right. It has the following drawbacks:
ByteString
into aByteArray
, the completion helps me find thetoByteArray()
extension. When I look for the inverse operation, I can't find it via completionByteString.toByteArray()
counterpartnullableByteString?.toByteArray()
is nice, whilenullableByteArray?.let { ByteString(it) }
is not niceAdding a
ByteArray.toByteString()
extension would solve all of these.The text was updated successfully, but these errors were encountered: