pub fn compress(
seq_id: u8,
compression: Compression,
max_allowed_packet: usize,
src: &mut BytesMut,
dst: &mut BytesMut,
) -> Result<u8, PacketCodecError>Expand description
Will compress all data from src to dst.
Compressed packets will start with given seq_id. Resulting sequence id will be returned.