fun encode(sink: BufferedSink): Unit
fun encode(stream: OutputStream): Unit
Encode this message and write it to stream.
stream
fun encode(): ByteArray
Encode this message as a byte[].
byte[]