[−][src]Struct cpclib_sna::MemoryChunk
Memory chunk that superseeds the snapshot memory if any.
Methods
impl MemoryChunk
[src]
pub fn from(code: [u8; 4], data: Vec<u8>) -> Self
[src]
Create a memory chunk.
code
identify with memory block is concerned
data
contains the crunched version of the code
pub fn build(code: [u8; 4], data: &[u8], compressed: bool) -> Self
[src]
Build the memory chunk from the memory content. Chunk can be built in a compressed or uncompressed version
pub fn uncrunched_memory(&self) -> Vec<u8>
[src]
Uncrunch the 64kbio of RLE crunched data if crunched. Otherwise, return the whole memory
pub fn abstract_address(&self) -> usize
[src]
Returns the address in the memory array
pub fn is_crunched(&self) -> bool
[src]
A uncrunched memory taaks 64*1024 bytes
Trait Implementations
impl Clone for MemoryChunk
[src]
fn clone(&self) -> MemoryChunk
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for MemoryChunk
[src]
impl From<MemoryChunk> for SnapshotChunk
[src]
fn from(chunk: MemoryChunk) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for MemoryChunk
impl Send for MemoryChunk
impl Sync for MemoryChunk
impl Unpin for MemoryChunk
impl UnwindSafe for MemoryChunk
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,