wire-runtime / com.squareup.wire / Message / encode

encode

fun encode(sink: BufferedSink): Unit
fun encode(stream: OutputStream): Unit

Encode this message and write it to stream.

fun encode(): ByteArray

Encode this message as a byte[].