pub fn encode_packets(packets: &[Packet]) -> Result<Vec<u8>, ProtocolError>
Encode several pkt-lines in order.