[][src]Struct cpclib_sna::MemoryChunk

pub struct MemoryChunk { /* fields omitted */ }

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]

impl Debug for MemoryChunk[src]

impl From<MemoryChunk> for SnapshotChunk[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.