Struct libscemu::emu::maps::Maps

source ·
pub struct Maps {
    pub maps: Vec<Mem64>,
    pub is_64bits: bool,
}

Fields§

§maps: Vec<Mem64>§is_64bits: bool

Implementations§

source§

impl Maps

source

pub fn new() -> Maps

source

pub fn clear(&mut self)

source

pub fn get_base(&self) -> Option<u64>

source

pub fn exists_mapname(&self, name: &str) -> bool

source

pub fn get_map_by_name(&self, name: &str) -> Option<&Mem64>

source

pub fn get_map_by_name_mut(&mut self, name: &str) -> Option<&mut Mem64>

source

pub fn create_map(&mut self, name: &str) -> &mut Mem64

source

pub fn write_qword(&mut self, addr: u64, value: u64) -> bool

source

pub fn write_dword(&mut self, addr: u64, value: u32) -> bool

source

pub fn write_word(&mut self, addr: u64, value: u16) -> bool

source

pub fn write_byte(&mut self, addr: u64, value: u8) -> bool

source

pub fn write_bytes(&mut self, addr: u64, data: Vec<u8>)

source

pub fn write_bytes_slice(&mut self, addr: u64, data: &[u8])

source

pub fn read_128bits_be(&self, addr: u64) -> Option<u128>

source

pub fn read_128bits_le(&self, addr: u64) -> Option<u128>

source

pub fn read_qword(&self, addr: u64) -> Option<u64>

source

pub fn read_dword(&self, addr: u64) -> Option<u32>

source

pub fn read_word(&self, addr: u64) -> Option<u16>

source

pub fn read_byte(&self, addr: u64) -> Option<u8>

source

pub fn get_mem_ref(&self, name: &str) -> &Mem64

source

pub fn get_mem(&mut self, name: &str) -> &mut Mem64

source

pub fn get_mem_by_addr(&mut self, addr: u64) -> Option<&mut Mem64>

source

pub fn memset(&mut self, addr: u64, b: u8, amount: usize)

source

pub fn memcpy(&mut self, to: u64, from: u64, size: usize) -> bool

source

pub fn sizeof_wide(&self, unicode_str_ptr: u64) -> usize

source

pub fn write_string(&mut self, to: u64, from: &str)

source

pub fn write_wide_string(&mut self, to: u64, from: &str)

source

pub fn write_buffer(&mut self, to: u64, from: &[u8])

source

pub fn read_buffer(&mut self, from: u64, sz: usize) -> Vec<u8>

source

pub fn print_maps_keyword(&self, kw: &str)

source

pub fn print_maps(&self)

source

pub fn get_addr_base(&self, addr: u64) -> Option<u64>

source

pub fn is_mapped(&self, addr: u64) -> bool

source

pub fn show_addr_names(&self, addr: u64)

source

pub fn get_addr_name(&self, addr: u64) -> Option<String>

source

pub fn dump(&self, addr: u64)

source

pub fn dump_n(&self, addr: u64, amount: u64)

source

pub fn dump2(&self, addr: u64)

👎Deprecated
source

pub fn dump_qwords(&self, addr: u64, n: u64)

source

pub fn dump_dwords(&self, addr: u64, n: u64)

source

pub fn read_bytes(&mut self, addr: u64, sz: usize) -> &[u8]

source

pub fn read_string_of_bytes(&mut self, addr: u64, sz: usize) -> String

source

pub fn read_string(&self, addr: u64) -> String

source

pub fn read_wide_string(&self, addr: u64) -> String

source

pub fn search_string(&self, kw: &str, map_name: &str) -> Option<Vec<u64>>

source

pub fn write_spaced_bytes(&mut self, addr: u64, sbs: &str) -> bool

source

pub fn spaced_bytes_to_bytes(&self, sbs: &str) -> Vec<u8>

source

pub fn search_spaced_bytes_from(&self, sbs: &str, saddr: u64) -> u64

source

pub fn search_spaced_bytes_from_bw(&self, sbs: &str, saddr: u64) -> u64

source

pub fn search_spaced_bytes(&self, sbs: &str, map_name: &str) -> Vec<u64>

source

pub fn search_spaced_bytes_in_all(&self, sbs: &str) -> Vec<u64>

source

pub fn search_string_in_all(&self, kw: String)

source

pub fn search_bytes(&self, bkw: Vec<u8>, map_name: &str) -> Vec<u64>

source

pub fn size(&self) -> usize

source

pub fn overlapps(&self, addr: u64, sz: u64) -> bool

source

pub fn show_allocs(&self)

source

pub fn free(&mut self, name: &str)

source

pub fn lib64_alloc(&self, sz: u64) -> Option<u64>

source

pub fn alloc(&self, sz: u64) -> Option<u64>

source

pub fn save_all_allocs(&mut self, path: String)

source

pub fn save(&mut self, addr: u64, size: u64, filename: String)

source

pub fn filter_string(&self, s: &mut String)

source

pub fn filter_replace_bytes(&self, s: &[u8]) -> Vec<u8>

source

pub fn filter_replace_string(&self, s: &str) -> String

source

pub fn mem_test(&self) -> bool

Trait Implementations§

source§

impl Clone for Maps

source§

fn clone(&self) -> Maps

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl Freeze for Maps

§

impl RefUnwindSafe for Maps

§

impl Send for Maps

§

impl Sync for Maps

§

impl Unpin for Maps

§

impl UnwindSafe for Maps

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V