Struct xbe::Section [−][src]
pub struct Section<'a> { /* fields omitted */ }
A section pointing into the image's memory.
This contains all information needed to set up the section's virtual memory.
Methods
impl<'a> Section<'a>
[src]
impl<'a> Section<'a>
pub fn virt_range(&self) -> RangeInclusive<u32>
[src]
pub fn virt_range(&self) -> RangeInclusive<u32>
The range of virtual addresses this section should be mapped into.
pub fn raw_range(&self) -> RangeInclusive<u32>
[src]
pub fn raw_range(&self) -> RangeInclusive<u32>
The memory range inside the XBE image to be mapped to the virtual range.
The returned range is guaranteed to be inside the bounds of the XBE image.
pub fn name(&self) -> &'a str
[src]
pub fn name(&self) -> &'a str
Returns the section's name.
pub fn flags(&self) -> &SectionFlags
[src]
pub fn flags(&self) -> &SectionFlags
Gets the section flags that configure how the section should be mapped.
pub fn data(&self) -> &[u8]
[src]
pub fn data(&self) -> &[u8]
Returns the section's contents stored in the XBE image.
This is the data in the image file and might not suffice to fill all the virtual memory occupied by the section.