class ByteArrayBuilder
Helper class to assist with building byte arrays. Works similarly to StringBuilder. |
fun buildByteArray(block: ByteArrayBuilder.() -> Unit): ByteArray
Creates a new ByteArrayBuilder instance, calls block with the builder as receiver, finally returning the ByteArray generated by call to ByteArrayBuilder.build. |