pub struct SBSection {
pub raw: SBSectionRef,
}
Expand description
Represents an executable image section.
SBSection
supports iteration through its subsections,
represented as SBSection
as well.
See also:
Fields§
§raw: SBSectionRef
The underlying raw SBSectionRef
.
Implementations§
Source§impl SBSection
impl SBSection
pub fn find_subsection(&self, name: &str) -> Option<SBSection>
Sourcepub fn subsections(&self) -> SBSectionSubSectionIter<'_> ⓘ
pub fn subsections(&self) -> SBSectionSubSectionIter<'_> ⓘ
Get an iterator over the subsections known to this section instance.
pub fn file_address(&self) -> u64
pub fn load_address(&self, target: &SBTarget) -> u64
pub fn byte_size(&self) -> u64
pub fn file_offset(&self) -> u64
pub fn file_byte_size(&self) -> u64
pub fn section_data(&self) -> SBData
pub fn section_data_slice(&self, offset: u64, size: u64) -> SBData
pub fn section_type(&self) -> SectionType
Sourcepub fn permissions(&self) -> Option<Permissions>
pub fn permissions(&self) -> Option<Permissions>
Gets the permissions (RWX) of the section of the object file.
None
is returned for sections without permissions. Invalid
permissions bits are truncated.
pub fn target_byte_size(&self) -> u32
Trait Implementations§
impl Send for SBSection
impl Sync for SBSection
Auto Trait Implementations§
impl Freeze for SBSection
impl RefUnwindSafe for SBSection
impl Unpin for SBSection
impl UnwindSafe for SBSection
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