pub struct ResourceData<'a> {
pub image_resource_directory: ImageResourceDirectory,
pub version_info: Option<VersionInfo<'a>>,
pub manifest_data: Option<ManifestData<'a>>,
/* private fields */
}Expand description
Represents the resource data associated with a PE (Portable Executable) image.
Fields§
§image_resource_directory: ImageResourceDirectoryThe image resource directory containing metadata about the resources.
version_info: Option<VersionInfo<'a>>Version information if present
manifest_data: Option<ManifestData<'a>>Manifest data if present
Implementations§
Source§impl<'a> ResourceData<'a>
impl<'a> ResourceData<'a>
pub fn parse( bytes: &'a [u8], dd: DataDirectory, sections: &[SectionTable], file_alignment: u32, ) -> Result<Self>
pub fn parse_with_opts( bytes: &'a [u8], dd: DataDirectory, sections: &[SectionTable], file_alignment: u32, opts: &ParseOptions, ) -> Result<Self>
Sourcepub fn count(&self) -> u16
pub fn count(&self) -> u16
Counts the total number of resource entries (both named and ID entries).
Returns the sum of ImageResourceDirectory::number_of_id_entries and ImageResourceDirectory::number_of_named_entries
from the Self::image_resource_directory.
Sourcepub fn entries(&self) -> ResourceEntryIterator<'a> ⓘ
pub fn entries(&self) -> ResourceEntryIterator<'a> ⓘ
Creates an iterator over the ResourceEntry.
Returns a ResourceEntryIterator that can be used to iterate over
the resource entries contained within this resource data.
Trait Implementations§
Source§impl<'a> Clone for ResourceData<'a>
impl<'a> Clone for ResourceData<'a>
Source§fn clone(&self) -> ResourceData<'a>
fn clone(&self) -> ResourceData<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ResourceData<'a>
impl<'a> Debug for ResourceData<'a>
Source§impl<'a> Default for ResourceData<'a>
impl<'a> Default for ResourceData<'a>
Source§fn default() -> ResourceData<'a>
fn default() -> ResourceData<'a>
Returns the “default value” for a type. Read more
impl<'a> Copy for ResourceData<'a>
Auto Trait Implementations§
impl<'a> Freeze for ResourceData<'a>
impl<'a> RefUnwindSafe for ResourceData<'a>
impl<'a> Send for ResourceData<'a>
impl<'a> Sync for ResourceData<'a>
impl<'a> Unpin for ResourceData<'a>
impl<'a> UnsafeUnpin for ResourceData<'a>
impl<'a> UnwindSafe for ResourceData<'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