pub struct JumpTable { /* private fields */ }Expand description
Jump table implementation.
Implementations§
source§impl JumpTable
impl JumpTable
sourcepub fn shift_pc(&mut self, start: u16, offset: u16) -> Result<()>
pub fn shift_pc(&mut self, start: u16, offset: u16) -> Result<()>
Shift program counter for all items.
sourcepub fn shift_targets(&mut self) -> Result<()>
pub fn shift_targets(&mut self) -> Result<()>
Shift the target program counters.
sourcepub fn shift_target(&mut self, ptr: u16, offset: u16) -> Result<()>
pub fn shift_target(&mut self, ptr: u16, offset: u16) -> Result<()>
Shift the program counter of targets with given ptr and offset.
sourcepub fn shift_func_target(&mut self, start: u16, offset: u16) -> Result<()>
pub fn shift_func_target(&mut self, start: u16, offset: u16) -> Result<()>
Shift program counter for functions.
source§impl JumpTable
impl JumpTable
sourcepub fn call_offset(&mut self, func: u32, offset: u16) -> Result<()>
pub fn call_offset(&mut self, func: u32, offset: u16) -> Result<()>
Register program counter to the function table.
sourcepub fn code_offset(&mut self, offset: u16)
pub fn code_offset(&mut self, offset: u16)
Register program counter for code section.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for JumpTable
impl Send for JumpTable
impl Sync for JumpTable
impl Unpin for JumpTable
impl UnwindSafe for JumpTable
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