Extensions for kotlin.ByteArray

encodeBase64

fun ByteArray.encodeBase64(): String

Encode ByteArray in base64 format

readShort

fun ByteArray.readShort(offset: Int): Short

Read Short in network order(BE) with specified offset from ByteArray.