#[repr(C)]pub struct Overlay {
pub id: u32,
pub base_addr: u32,
pub code_size: u32,
pub bss_size: u32,
pub ctor_start: u32,
pub ctor_end: u32,
pub file_id: u32,
pub flags: OverlayFlags,
}Expand description
An entry in an overlay table. This is the raw struct, see the plain one here.
Fields§
§id: u32Overlay ID.
base_addr: u32Base address.
code_size: u32Initialized size.
bss_size: u32Uninitialized size.
ctor_start: u32Offset to start of .ctor section.
ctor_end: u32Offset to end of .ctor section.
file_id: u32File ID for the FAT.
flags: OverlayFlagsFlags and compressed size.
Implementations§
Source§impl Overlay
impl Overlay
Sourcepub fn borrow_from_slice(data: &[u8]) -> Result<&[Self], RawOverlayError>
pub fn borrow_from_slice(data: &[u8]) -> Result<&[Self], RawOverlayError>
Sourcepub fn display(&self, indent: usize) -> DisplayOverlay<'_>
pub fn display(&self, indent: usize) -> DisplayOverlay<'_>
Creates a DisplayOverlay which implements Display.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Overlay
impl RefUnwindSafe for Overlay
impl Send for Overlay
impl Sync for Overlay
impl Unpin for Overlay
impl UnsafeUnpin for Overlay
impl UnwindSafe for Overlay
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.