pub struct Room {
pub after: u32,
pub before: u32,
}Expand description
How much room every function opens with for something to be written over it later.
What -fpatchable-function-entry= asks for, as the two halves a prologue deals in rather than
as the total and the part the flag is written in. The room can be on either side of the
function’s own label and the two sides are not the same thing: what is after the label is inside
the function, which is what a patcher redirecting a call into it wants, and what is in front of
it is outside, which is where a patcher that needs a whole instruction it can reach from the
first one puts it.
Fields§
§after: u32How many bytes go after the function’s own label.
before: u32How many go in front of it.
Implementations§
Trait Implementations§
impl Copy for Room
impl Eq for Room
impl StructuralPartialEq for Room
Auto Trait Implementations§
impl Freeze for Room
impl RefUnwindSafe for Room
impl Send for Room
impl Sync for Room
impl Unpin for Room
impl UnsafeUnpin for Room
impl UnwindSafe for Room
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