Struct dynasmrt::x64::UncommittedModifier
[−]
[src]
pub struct UncommittedModifier<'a> { /* fields omitted */ }
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]
fn goto(&mut self, offset: AssemblyOffset)
Sets the current modification offset to the given value
fn check(&mut self, offset: AssemblyOffset)
Checks that the current modification offset is not larger than the specified offset. If this is violated, it panics.
fn check_exact(&mut self, offset: AssemblyOffset)
Checks that the current modification offset is exactly the specified offset. If this is violated, it panics.
Trait Implementations
impl<'a, 'b> DynasmApi<'b> for UncommittedModifier<'a>
[src]
fn offset(&self) -> AssemblyOffset
Report the current offset into the assembling target
fn push(&mut self, value: u8)
Push a byte into the assembling target
fn push_i8(&mut self, value: i8)
Push a signed byte into the assembling target
fn push_i16(&mut self, value: i16)
Push a signed word into the assembling target
fn push_i32(&mut self, value: i32)
Push a signed doubleword into the assembling target
fn push_i64(&mut self, value: i64)
Push a signed quadword into the assembling target
fn runtime_error(&self, msg: &'static str) -> !
This function is called in when a runtime error has to be generated. It panics.
impl<'a> Extend<u8> for UncommittedModifier<'a>
[src]
fn extend<T>(&mut self, iter: T) where
T: IntoIterator<Item = u8>,
T: IntoIterator<Item = u8>,
Extends a collection with the contents of an iterator. Read more
impl<'a, 'b> Extend<&'b u8> for UncommittedModifier<'a>
[src]
fn extend<T>(&mut self, iter: T) where
T: IntoIterator<Item = &'b u8>,
T: IntoIterator<Item = &'b u8>,
Extends a collection with the contents of an iterator. Read more