Proposal. ``` @kotlin.internal.InlineOnly public i...
# stdlib
d
Proposal.
Copy code
@kotlin.internal.InlineOnly
public inline fun buildByteArray(builderAction: ByteArrayOutputStream.() -> Unit): ByteArray
j
ByteArrayOutputStream isn't a very useful type in the same way that StringBuilder is
Okio is adding a
buildByteString
which offers a dramatically more expressive API for assembling the byte output of various things: https://github.com/square/okio/issues/611
d
Is
ByteString
~=
ByteArray
?
j
but immutable
like a String
d
Ah, sweet!