Struct malwaredb_types::exec::Section
source · pub struct Section<'a> {
pub name: String,
pub is_executable: bool,
pub size: usize,
pub offset: usize,
pub virtual_address: u32,
pub virtual_size: u32,
pub entropy: f32,
pub data: Option<&'a [u8]>,
}
Fields§
§name: String
Name of the section, can be empty, not a reliable way to identify attributes of it
is_executable: bool
Whether or not an execute bit was set
size: usize
Size of the section
offset: usize
Offset in the file where the section starts
virtual_address: u32
Address of the section once loaded into memory, not for all executable types
virtual_size: u32
Size of the section once loaded into memory, not for all executable types
entropy: f32
Entropy of the section
data: Option<&'a [u8]>
Slice of this section’s bytes
Trait Implementations§
source§impl<'a> PartialEq for Section<'a>
impl<'a> PartialEq for Section<'a>
impl<'a> StructuralPartialEq for Section<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Section<'a>
impl<'a> Send for Section<'a>
impl<'a> Sync for Section<'a>
impl<'a> Unpin for Section<'a>
impl<'a> UnwindSafe for Section<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more