is_compressed

Function is_compressed 

Source
pub const fn is_compressed(f: u8) -> bool
Expand description

Checks whether packet payload is compressed or not.

Example:

use mid_net::utils::{flags, encode_type};
 
assert!(
    flags::is_compressed(encode_type(12, flags::COMPRESSED))
);