From 963b9dbb5fcd963043a774bc1f1a119a32c57d90 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 18 Sep 2023 17:34:49 +0200 Subject: [PATCH] inline PacketId raw call --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index a55e5da..ec2bcd1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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 }