use endpoint_sec_sys::es_event_mprotect_t;
#[doc(alias = "es_event_mprotect_t")]
pub struct EventMprotect<'a> {
pub(crate) raw: &'a es_event_mprotect_t,
}
impl<'a> EventMprotect<'a> {
#[inline(always)]
pub fn protection(&self) -> i32 {
self.raw.protection
}
#[inline(always)]
pub fn address(&self) -> usize {
self.raw.address as usize
}
#[inline(always)]
pub fn size(&self) -> usize {
self.raw.size as usize
}
}
unsafe impl Send for EventMprotect<'_> {}
impl_debug_eq_hash_with_functions!(EventMprotect<'a>; protection, address, size);