encodeToByteArray

fun <T> T.encodeToByteArray(): ByteArray

Encode this message to a ByteArray using the protocol buffer binary encoding. This function is a wrapper to PBandK's encoding function.