pub struct RomData {
pub data: Vec<u8>,
pub length: usize,
}Expand description
Represents the ROM data, with a byte vector and the ROM length
Note that the ROM length may not be the same as the length of the data vector, it is the actual length of the ROM.
The RomData::length parameter is updated after a patch operation to reflect the new length of the ROM if it was modified.
Note that asar will not modify the length of the data vector, if the patch does not fit in the data vector, patching will fail.
Fields§
§data: Vec<u8>§length: usizeImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RomData
impl RefUnwindSafe for RomData
impl Send for RomData
impl Sync for RomData
impl Unpin for RomData
impl UnwindSafe for RomData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more