pub struct PdbInternalRva(pub u32);Expand description
Tuple Fields§
§0: u32Implementations§
Source§impl PdbInternalRva
impl PdbInternalRva
Sourcepub fn checked_add(self, offset: u32) -> Option<Self>
pub fn checked_add(self, offset: u32) -> Option<Self>
Checked addition of an offset. Returns None if overflow occurred.
Sourcepub fn checked_sub(self, other: Self) -> Option<u32>
pub fn checked_sub(self, other: Self) -> Option<u32>
Checked computation of an offset between two addresses. Returns None if other is
larger.
Sourcepub fn saturating_add(self, offset: u32) -> Self
pub fn saturating_add(self, offset: u32) -> Self
Saturating addition of an offset, clipped at the numeric bounds.
Sourcepub fn saturating_sub(self, other: Self) -> u32
pub fn saturating_sub(self, other: Self) -> u32
Saturating computation of an offset between two addresses, clipped at zero.
Sourcepub fn wrapping_add(self, offset: u32) -> Self
pub fn wrapping_add(self, offset: u32) -> Self
Wrapping (modular) addition of an offset.
Sourcepub fn wrapping_sub(self, other: Self) -> u32
pub fn wrapping_sub(self, other: Self) -> u32
Wrapping (modular) computation of an offset between two addresses.
Source§impl PdbInternalRva
impl PdbInternalRva
Sourcepub fn to_rva(self, translator: &AddressMap<'_>) -> Option<Rva>
pub fn to_rva(self, translator: &AddressMap<'_>) -> Option<Rva>
Resolves an actual Relative Virtual Address in the executable’s address space.
Sourcepub fn to_section_offset(
self,
translator: &AddressMap<'_>,
) -> Option<SectionOffset>
pub fn to_section_offset( self, translator: &AddressMap<'_>, ) -> Option<SectionOffset>
Resolves the section offset in the PE headers.
This is an offset into PE section headers of the executable. To retrieve section offsets
used in the PDB, use to_internal_offset instead.
Sourcepub fn to_internal_offset(
self,
translator: &AddressMap<'_>,
) -> Option<PdbInternalSectionOffset>
pub fn to_internal_offset( self, translator: &AddressMap<'_>, ) -> Option<PdbInternalSectionOffset>
Resolves the PDB internal section offset.
This is the offset value used in the PDB file. To index into the actual PE section headers,
use to_section_offset instead.
Trait Implementations§
Source§impl Add<u32> for PdbInternalRva
impl Add<u32> for PdbInternalRva
Source§impl AddAssign<u32> for PdbInternalRva
impl AddAssign<u32> for PdbInternalRva
Source§fn add_assign(&mut self, offset: u32)
fn add_assign(&mut self, offset: u32)
Adds the given offset to this address.
Source§impl Clone for PdbInternalRva
impl Clone for PdbInternalRva
Source§fn clone(&self) -> PdbInternalRva
fn clone(&self) -> PdbInternalRva
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more