pub fn write_compressed_frame(
dst: &mut impl BufMut,
uncompressed_size: i32,
payload: &[u8],
)Expand description
Wrap packet data with the compression format.
If data_len >= threshold, the data should already be zlib-compressed and
uncompressed_size should be the original size. If below threshold, pass
uncompressed_size = 0 and provide the raw data.