[][src]Struct dynasmrt::UncommittedModifier

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.

Implementations

impl<'a> UncommittedModifier<'a>[src]

pub fn new(
    buffer: &mut Vec<u8>,
    base_offset: AssemblyOffset
) -> UncommittedModifier<'_>
[src]

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> Debug for UncommittedModifier<'a>[src]

impl<'a> DynasmApi for UncommittedModifier<'a>[src]

impl<'a, 'b> Extend<&'b u8> for UncommittedModifier<'a>[src]

impl<'a> Extend<u8> for UncommittedModifier<'a>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.