inline PacketId raw call
This commit is contained in:
parent
2a0db6b21c
commit
963b9dbb5f
@ -283,6 +283,7 @@ impl PacketId {
|
||||
self.apid
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn raw(&self) -> u16 {
|
||||
((self.ptype as u16) << 12) | ((self.sec_header_flag as u16) << 11) | self.apid
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user