Struct dynasmrt::x64::AssemblyModifier [] [src]

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]

Sets the current modification offset to the given value

Checks that the current modification offset is not larger than the specified offset. If this is violated, it panics.

Checks that the current modification offset is exactly the specified offset. If this is violated, it panics.

Trait Implementations

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

Report the current offset into the assembling target

Push a byte into the assembling target

Push a signed byte into the assembling target

Push a signed word into the assembling target

Push a signed doubleword into the assembling target

Push a signed quadword into the assembling target

This function is called in when a runtime error has to be generated. It panics.

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

Push nops until the assembling target end is aligned to the given alignment

Record the definition of a global label

Record a relocation spot for a reference to a global label

Record the definition of a dynamic label

Record a relocation spot for a reference to a dynamic label

Record the definition of a local label

Record a relocation spot for a forward reference to a local label

Record a relocation spot for a backward reference to a local label

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

Extends a collection with the contents of an iterator. Read more

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

Extends a collection with the contents of an iterator. Read more