pub trait Relocator {
    // Required methods
    fn new(input_code: u64, output: &mut TargetInstructionWriter) -> Self;
    fn read_one(&mut self) -> (u32, Insn);
    fn eoi(&mut self) -> bool;
    fn write_all(&mut self);
    fn write_one(&mut self) -> bool;
    fn skip_one(&mut self) -> bool;
}

Required Methods§

source

fn new(input_code: u64, output: &mut TargetInstructionWriter) -> Self

Create a new Relocator for the input code address, outputting to the specified InstructionWriter

source

fn read_one(&mut self) -> (u32, Insn)

Read one instruction from the input stream

source

fn eoi(&mut self) -> bool

Check if the relocator has reached the end of input

source

fn write_all(&mut self)

Relocate and write all instructions to the output InstructionWriter

source

fn write_one(&mut self) -> bool

Relocate and write one instruction to the output InstructionWriter

source

fn skip_one(&mut self) -> bool

Skip one instruction

Object Safety§

This trait is not object safe.

Implementors§