pub fn encode(msg: &Message) -> Vec<u8> ⓘExpand description
Encode msg to SOH-delimited wire bytes.
Emits the canonical order 8, 9, 35, <rest of header>, <body>, <trailer except 10>, 10.
BodyLength is the byte count of everything after the 9=..<SOH> up to and including the
<SOH> before 10=; CheckSum is the sum of all preceding bytes modulo 256.