Add missing inline macro to xdp methods

pull/325/head
tirex 3 years ago
parent 24597b15b7
commit 8d586aaca2

@ -11,10 +11,12 @@ impl XdpContext {
XdpContext { ctx } XdpContext { ctx }
} }
#[inline]
pub fn data(&self) -> usize { pub fn data(&self) -> usize {
unsafe { (*self.ctx).data as usize } unsafe { (*self.ctx).data as usize }
} }
#[inline]
pub fn data_end(&self) -> usize { pub fn data_end(&self) -> usize {
unsafe { (*self.ctx).data_end as usize } unsafe { (*self.ctx).data_end as usize }
} }

Loading…
Cancel
Save