pub struct Section {
pub name: String,
pub address: u64,
pub size: u64,
pub offset: u64,
pub file_size: u64,
pub permissions: SectionPermissions,
pub section_type: SectionType,
pub data: Option<Vec<u8>>,
}Expand description
Binary section information
Fields§
§name: StringSection name
address: u64Virtual address
size: u64Size of the section’s virtual/memory span in bytes
offset: u64File offset
file_size: u64Number of bytes backed by the file from Self::offset
permissions: SectionPermissionsSection permissions
section_type: SectionTypeSection type
data: Option<Vec<u8>>Inline raw-data preview (optional, for small file-backed sections)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Section
impl<'de> Deserialize<'de> for Section
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Section
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnsafeUnpin for Section
impl UnwindSafe for Section
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