pub struct Sections<'a>(pub Table<SectionRow<'a>>);Expand description
Sections with their ccorrisponding data
Tuple Fields§
§0: Table<SectionRow<'a>>Implementations§
Source§impl<'a> Sections<'a>
impl<'a> Sections<'a>
pub fn parse(file_bytes: &'a [u8], section_table: SectionTable) -> Result<Self>
pub fn find_rva(&self, virtual_address: usize) -> Option<&SectionRow<'a>>
pub fn find_rva_data(&self, virtual_address: usize) -> Option<&'a [u8]>
pub fn find_data_directory_data_map<T>( &self, data_directory: &ImageDataDirectory, func: impl FnMut(&[u8]) -> Result<T>, ) -> Result<Option<T>>
Trait Implementations§
impl<'a> StructuralPartialEq for Sections<'a>
Auto Trait Implementations§
impl<'a> Freeze for Sections<'a>
impl<'a> RefUnwindSafe for Sections<'a>
impl<'a> Send for Sections<'a>
impl<'a> Sync for Sections<'a>
impl<'a> Unpin for Sections<'a>
impl<'a> UnwindSafe for Sections<'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