revm_interpreter::interpreter_types

Trait Immediates

Source
pub trait Immediates {
    // Required methods
    fn read_i16(&self) -> i16;
    fn read_u16(&self) -> u16;
    fn read_i8(&self) -> i8;
    fn read_u8(&self) -> u8;
    fn read_offset_i16(&self, offset: isize) -> i16;
    fn read_offset_u16(&self, offset: isize) -> u16;
    fn read_slice(&self, len: usize) -> &[u8] ;
}
Expand description

Helper function to read immediates data from the bytecode.

Required Methods§

Source

fn read_i16(&self) -> i16

Source

fn read_u16(&self) -> u16

Source

fn read_i8(&self) -> i8

Source

fn read_u8(&self) -> u8

Source

fn read_offset_i16(&self, offset: isize) -> i16

Source

fn read_offset_u16(&self, offset: isize) -> u16

Source

fn read_slice(&self, len: usize) -> &[u8]

Implementors§