Skip to content

Commit

Permalink
inline PacketId raw call
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed Sep 18, 2023
1 parent 2a0db6b commit 963b9db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 963b9db

Please sign in to comment.