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.