library / org.akop.kotx.tools.basic

Package org.akop.kotx.tools.basic

Types

ByteArrayBuilder

class ByteArrayBuilder

Helper class to assist with building byte arrays. Works similarly to StringBuilder.

Functions

buildByteArray

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.