#[repr(C)]pub struct ResourceDataEntry {
pub offset_to_data: u32,
pub size: u32,
pub code_page: u32,
pub reserved: u32,
}Expand description
Represents an entry in a resource data entry structure.
This struct contains information about a specific resource, including the offset to the resource data, the size of the resource, the code page, and any reserved fields for future use.
Fields§
§offset_to_data: u32The offset from the beginning of the resource data directory to the actual resource data in memory.
The name of this field is confusing, but this is really a RVA.
size: u32The size of the resource data in bytes.
code_page: u32The code page used for the resource data, which specifies the character encoding for strings within the resource.
reserved: u32Reserved field for future use.
Trait Implementations§
Source§impl Clone for ResourceDataEntry
impl Clone for ResourceDataEntry
Source§fn clone(&self) -> ResourceDataEntry
fn clone(&self) -> ResourceDataEntry
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 moreimpl Copy for ResourceDataEntry
Source§impl Debug for ResourceDataEntry
impl Debug for ResourceDataEntry
Source§impl Default for ResourceDataEntry
impl Default for ResourceDataEntry
Source§fn default() -> ResourceDataEntry
fn default() -> ResourceDataEntry
Returns the “default value” for a type. Read more
Source§impl PartialEq for ResourceDataEntry
impl PartialEq for ResourceDataEntry
Source§fn eq(&self, other: &ResourceDataEntry) -> bool
fn eq(&self, other: &ResourceDataEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResourceDataEntry
Source§impl<'a> TryFromCtx<'a, Endian> for ResourceDataEntrywhere
ResourceDataEntry: 'a,
impl<'a> TryFromCtx<'a, Endian> for ResourceDataEntrywhere
ResourceDataEntry: 'a,
Source§impl<'a> TryIntoCtx<Endian> for &'a ResourceDataEntry
impl<'a> TryIntoCtx<Endian> for &'a ResourceDataEntry
Auto Trait Implementations§
impl Freeze for ResourceDataEntry
impl RefUnwindSafe for ResourceDataEntry
impl Send for ResourceDataEntry
impl Sync for ResourceDataEntry
impl Unpin for ResourceDataEntry
impl UnsafeUnpin for ResourceDataEntry
impl UnwindSafe for ResourceDataEntry
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