ident_type

Function ident_type 

Source
pub const fn ident_type(pkt_type: u8) -> u8
Expand description

Same as encode_type, but pkt_flags = 0

Example:

use mid_net::utils::{
    encode_type,
    ident_type,
};

assert_eq!(ident_type(10), encode_type(10, 0));
assert_eq!(ident_type(4), encode_type(4, 0));
assert_eq!(ident_type(0), encode_type(0, 0));