#[repr(C)]pub struct DataDirectory {
pub virtual_address: u32,
pub size: u32,
}
Expand description
Each data directory gives the address and size of a table or string that Windows uses. These data directory entries are all loaded into memory so that the system can use them at run time. A data directory is an 8-byte field that has the following declaration:
Fields§
§virtual_address: u32
RVA of the table. The RVA is the address of the table relative to the base address of the image when the table is loaded.
size: u32
Size of the table in bytes.
Trait Implementations§
Source§impl Clone for DataDirectory
impl Clone for DataDirectory
Source§fn clone(&self) -> DataDirectory
fn clone(&self) -> DataDirectory
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for DataDirectory
impl Default for DataDirectory
Source§fn default() -> DataDirectory
fn default() -> DataDirectory
Returns the “default value” for a type. Read more
impl Copy for DataDirectory
impl Pod for DataDirectory
Auto Trait Implementations§
impl Freeze for DataDirectory
impl RefUnwindSafe for DataDirectory
impl Send for DataDirectory
impl Sync for DataDirectory
impl Unpin for DataDirectory
impl UnwindSafe for DataDirectory
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.