toByteArray

private fun Int.toByteArray(): ByteArray

Converts an Int to a ByteArray.

Return

A ByteArray representing the integer value.