pub struct ProgramDescription {
pub text_offset: u32,
pub text_size: u32,
pub data_offset: u32,
pub data_size: u32,
pub poke_table: Vec<(u32, u32)>,
pub clear_size: u32,
pub bss_size: u32,
pub entry_point: u32,
pub program: Vec<u8>,
}Fields§
§text_offset: u32Virtual address of .text section in RAM
text_size: u32Size of the .text section in RAM
data_offset: u32Virtual address of .data section in RAM
data_size: u32Size of .data section
poke_table: Vec<(u32, u32)>Poke table for data section; in (address, data) tuples. Addresses are in u32 format
because we’re packing them for a target that is 32-bits, which may be different from the host.
clear_size: u32Size of region to be zero-ized by the loader
bss_size: u32Size of the .bss section
entry_point: u32Virtual address of the entrypoint
program: Vec<u8>Program contents
Auto Trait Implementations§
impl Freeze for ProgramDescription
impl RefUnwindSafe for ProgramDescription
impl Send for ProgramDescription
impl Sync for ProgramDescription
impl Unpin for ProgramDescription
impl UnwindSafe for ProgramDescription
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