[][src]Struct dynasmrt::x86::AssemblyModifier

pub struct AssemblyModifier<'a: 'b, 'b> { /* fields omitted */ }

This struct is a wrapper around an Assembler normally created using the Assembler.alter method. Instead of writing to a temporary assembling buffer, this struct assembles directly into an executable buffer. The goto method can be used to set the assembling offset in the ExecutableBuffer of the assembler (this offset is initialized to 0) after which the data at this location can be overwritten by assembling into this struct.

Methods

impl<'a, 'b> AssemblyModifier<'a, 'b>[src]

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, 'b> DynasmApi for AssemblyModifier<'a, 'b>[src]

impl<'a, 'b> DynasmLabelApi for AssemblyModifier<'a, 'b>[src]

type Relocation = (u8, u8, u8)

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

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

Auto Trait Implementations

impl<'a, 'b> Sync for AssemblyModifier<'a, 'b>

impl<'a, 'b> Send for AssemblyModifier<'a, 'b>

impl<'a, 'b> Unpin for AssemblyModifier<'a, 'b>

impl<'a, 'b> RefUnwindSafe for AssemblyModifier<'a, 'b>

impl<'a, 'b> !UnwindSafe for AssemblyModifier<'a, 'b>

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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