pub struct SyntheticStack { /* private fields */ }Expand description
synthesized stack layout for spoofing
Implementations§
Source§impl SyntheticStack
impl SyntheticStack
Sourcepub fn push_frame(&mut self, frame: FakeFrame)
pub fn push_frame(&mut self, frame: FakeFrame)
add a frame to the top of the stack
Sourcepub fn build(&mut self) -> &[usize]
pub fn build(&mut self) -> &[usize]
build the final stack layout returns the stack data with proper rbp chain
Sourcepub fn frame_count(&self) -> usize
pub fn frame_count(&self) -> usize
get the number of frames
Sourcepub fn total_size_bytes(&self) -> usize
pub fn total_size_bytes(&self) -> usize
get total size in bytes
Trait Implementations§
Source§impl Debug for SyntheticStack
impl Debug for SyntheticStack
Auto Trait Implementations§
impl Freeze for SyntheticStack
impl RefUnwindSafe for SyntheticStack
impl Send for SyntheticStack
impl Sync for SyntheticStack
impl Unpin for SyntheticStack
impl UnwindSafe for SyntheticStack
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