Struct libscemu::emu::maps::mem64::Mem64

source ·
pub struct Mem64 {
    pub mem: Vec<u8>,
    /* private fields */
}

Fields§

§mem: Vec<u8>

Implementations§

source§

impl Mem64

source

pub fn new() -> Mem64

source

pub fn get_name(&self) -> String

source

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

source

pub fn get_mem(&self) -> Vec<u8>

source

pub fn alloc(&mut self, amount: usize)

source

pub fn extend(&mut self, amount: usize)

source

pub fn size(&self) -> usize

source

pub fn get_base(&self) -> u64

source

pub fn get_bottom(&self) -> u64

source

pub fn memcpy(&mut self, ptr: &[u8], sz: usize)

source

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

source

pub fn set_base(&mut self, base_addr: u64)

source

pub fn update_base(&mut self, base_addr: u64)

source

pub fn set_bottom(&mut self, bottom_addr: u64)

source

pub fn update_bottom(&mut self, bottom_addr: u64)

source

pub fn set_size(&mut self, size: u64)

source

pub fn read_from(&self, addr: u64) -> &[u8]

source

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

source

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

source

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

source

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

source

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

source

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

source

pub fn write_bytes(&mut self, addr: u64, bs: &[u8])

source

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

source

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

source

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

source

pub fn write_string(&mut self, addr: u64, s: &str)

source

pub fn write_wide_string(&mut self, addr: u64, s: &str)

source

pub fn print_bytes(&self)

source

pub fn print_dwords(&self)

source

pub fn print_dwords_from_to(&self, from: u64, to: u64)

source

pub fn md5(&self) -> Digest

source

pub fn load_at(&mut self, base_addr: u64)

source

pub fn load_chunk(&mut self, filename: &str, off: u64, sz: usize) -> bool

source

pub fn load(&mut self, filename: &str) -> bool

source

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

Trait Implementations§

source§

impl Clone for Mem64

source§

fn clone(&self) -> Mem64

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 Mem64

§

impl RefUnwindSafe for Mem64

§

impl Send for Mem64

§

impl Sync for Mem64

§

impl Unpin for Mem64

§

impl UnwindSafe for Mem64

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