pub struct ExternalLocation { /* private fields */ }
Expand description
An ExternalLocation
is an association from a source symbol in a binary view
to a target symbol and/or address in an ExternalLibrary
.
Implementations§
source§impl ExternalLocation
impl ExternalLocation
sourcepub fn source_symbol(&self) -> Ref<Symbol>
pub fn source_symbol(&self) -> Ref<Symbol>
Get the source symbol for this ExternalLocation
sourcepub fn library(&self) -> Option<Ref<ExternalLibrary>>
pub fn library(&self) -> Option<Ref<ExternalLibrary>>
Get the ExternalLibrary that this ExternalLocation targets
sourcepub fn set_external_library(&self, lib: Option<&ExternalLibrary>)
pub fn set_external_library(&self, lib: Option<&ExternalLibrary>)
Set the ExternalLibrary that this ExternalLocation targets
sourcepub fn has_target_address(&self) -> bool
pub fn has_target_address(&self) -> bool
Check if this ExternalLocation has a target address
sourcepub fn has_target_symbol(&self) -> bool
pub fn has_target_symbol(&self) -> bool
Check if this ExternalLocation has a target symbol
sourcepub fn target_address(&self) -> Option<u64>
pub fn target_address(&self) -> Option<u64>
Get the address pointed to by this ExternalLocation, if any
sourcepub fn set_target_address(&self, address: Option<u64>) -> bool
pub fn set_target_address(&self, address: Option<u64>) -> bool
Set the address pointed to by this ExternalLocation. ExternalLocations must have a valid target address and/or symbol set.
sourcepub fn target_symbol(&self) -> Option<BnString>
pub fn target_symbol(&self) -> Option<BnString>
Get the symbol pointed to by this ExternalLocation, if any
sourcepub fn set_target_symbol<S: BnStrCompatible>(&self, symbol: Option<S>) -> bool
pub fn set_target_symbol<S: BnStrCompatible>(&self, symbol: Option<S>) -> bool
Set the symbol pointed to by this ExternalLocation. ExternalLocations must have a valid target address and/or symbol set.