[−][src]Struct dynasmrt::common::UncommittedModifier
This struct is a wrapper around an Assembler
normally created using the
Assembler.alter_uncommitted
method. It allows the user to edit parts
of the assembling buffer that cannot be determined easily or efficiently
in advance. Due to limitations of the label resolution algorithms, this
assembler does not allow labels to be used.
Methods
impl<'a> UncommittedModifier<'a>
[src]
pub fn new(
buffer: &mut Vec<u8>,
base_offset: AssemblyOffset
) -> UncommittedModifier
[src]
buffer: &mut Vec<u8>,
base_offset: AssemblyOffset
) -> UncommittedModifier
create a new uncommittedmodifier
pub fn goto(&mut self, offset: AssemblyOffset)
[src]
Sets the current modification offset to the given value
pub fn check(&mut self, offset: AssemblyOffset) -> Result<(), DynasmError>
[src]
Checks that the current modification offset is not larger than the specified offset.
pub fn check_exact(&mut self, offset: AssemblyOffset) -> Result<(), DynasmError>
[src]
Checks that the current modification offset is exactly the specified offset.
Trait Implementations
impl<'a> DynasmApi for UncommittedModifier<'a>
[src]
fn offset(&self) -> AssemblyOffset
[src]
fn push(&mut self, value: u8)
[src]
fn push_i8(&mut self, value: i8)
[src]
fn push_i16(&mut self, value: i16)
[src]
fn push_i32(&mut self, value: i32)
[src]
fn push_i64(&mut self, value: i64)
[src]
fn push_u16(&mut self, value: u16)
[src]
fn push_u32(&mut self, value: u32)
[src]
fn push_u64(&mut self, value: u64)
[src]
fn runtime_error(&self, msg: &'static str) -> !
[src]
impl<'a> Extend<u8> for UncommittedModifier<'a>
[src]
fn extend<T>(&mut self, iter: T) where
T: IntoIterator<Item = u8>,
[src]
T: IntoIterator<Item = u8>,
impl<'a, 'b> Extend<&'b u8> for UncommittedModifier<'a>
[src]
fn extend<T>(&mut self, iter: T) where
T: IntoIterator<Item = &'b u8>,
[src]
T: IntoIterator<Item = &'b u8>,
Auto Trait Implementations
impl<'a> Sync for UncommittedModifier<'a>
impl<'a> Send for UncommittedModifier<'a>
impl<'a> Unpin for UncommittedModifier<'a>
impl<'a> RefUnwindSafe for UncommittedModifier<'a>
impl<'a> !UnwindSafe for UncommittedModifier<'a>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,