pub fn compress_message_chained(msg: &[u8], algorithm: u16) -> Option<Vec<u8>>Expand description
Wrap msg in a chained COMPRESSION_TRANSFORM_HEADER ([MS-SMB2] \u00a72.2.42.2),
emitting a Pattern_V1 payload for each long single-byte run and an algorithm
(or uncompressed NONE) payload for the data between runs ([MS-SMB2] \u00a73.1.4.4).
For a READ response the SMB2 header and READ structure are carried in a
leading NONE payload so only the file data is compressed. Returns None when
the result would not shrink the message.