Struct it_lilo::lifter::MemoryReader
source · pub struct MemoryReader<MV: MemoryView<Store>, Store: Store> { /* private fields */ }
Implementations§
source§impl<MV: MemoryView<Store>, Store: Store> MemoryReader<MV, Store>
impl<MV: MemoryView<Store>, Store: Store> MemoryReader<MV, Store>
pub fn new(view: MV) -> Self
sourcepub fn sequential_reader(
&self,
store: &mut <Store as Store>::ActualStore<'_>,
offset: u32,
size: u32
) -> LiResult<SequentialReader<'_, MV, Store>>
pub fn sequential_reader( &self, store: &mut <Store as Store>::ActualStore<'_>, offset: u32, size: u32 ) -> LiResult<SequentialReader<'_, MV, Store>>
Returns reader that allows read sequentially. It’s important that memory limit is checked only inside this function. All others functions of the returned reader don’t have any checks assuming that reader is well-formed.
pub fn read_raw_u8_array( &self, store: &mut <Store as Store>::ActualStore<'_>, offset: u32, elements_count: u32 ) -> LiResult<Vec<u8>>
pub fn read_bool_array( &self, store: &mut <Store as Store>::ActualStore<'_>, offset: u32, elements_count: u32 ) -> LiResult<Vec<IValue>>
pub fn read_u8_array( &self, store: &mut <Store as Store>::ActualStore<'_>, offset: u32, elements_count: u32 ) -> LiResult<Vec<IValue>>
pub fn read_s8_array( &self, store: &mut <Store as Store>::ActualStore<'_>, offset: u32, elements_count: u32 ) -> LiResult<Vec<IValue>>
pub fn read_u16_array( &self, store: &mut <Store as Store>::ActualStore<'_>, offset: u32, elements_count: u32 ) -> LiResult<Vec<IValue>>
pub fn read_s16_array( &self, store: &mut <Store as Store>::ActualStore<'_>, offset: u32, elements_count: u32 ) -> LiResult<Vec<IValue>>
pub fn read_u32_array( &self, store: &mut <Store as Store>::ActualStore<'_>, offset: u32, elements_count: u32 ) -> LiResult<Vec<IValue>>
pub fn read_s32_array( &self, store: &mut <Store as Store>::ActualStore<'_>, offset: u32, elements_count: u32 ) -> LiResult<Vec<IValue>>
pub fn read_i32_array( &self, store: &mut <Store as Store>::ActualStore<'_>, offset: u32, elements_count: u32 ) -> LiResult<Vec<IValue>>
pub fn read_f32_array( &self, store: &mut <Store as Store>::ActualStore<'_>, offset: u32, elements_count: u32 ) -> LiResult<Vec<IValue>>
pub fn read_u64_array( &self, store: &mut <Store as Store>::ActualStore<'_>, offset: u32, elements_count: u32 ) -> LiResult<Vec<IValue>>
pub fn read_s64_array( &self, store: &mut <Store as Store>::ActualStore<'_>, offset: u32, elements_count: u32 ) -> LiResult<Vec<IValue>>
pub fn read_i64_array( &self, store: &mut <Store as Store>::ActualStore<'_>, offset: u32, elements_count: u32 ) -> LiResult<Vec<IValue>>
pub fn read_f64_array( &self, store: &mut <Store as Store>::ActualStore<'_>, offset: u32, elements_count: u32 ) -> LiResult<Vec<IValue>>
Auto Trait Implementations§
impl<MV, Store> RefUnwindSafe for MemoryReader<MV, Store>where
MV: RefUnwindSafe,
Store: RefUnwindSafe,
impl<MV, Store> Send for MemoryReader<MV, Store>
impl<MV, Store> Sync for MemoryReader<MV, Store>
impl<MV, Store> Unpin for MemoryReader<MV, Store>
impl<MV, Store> UnwindSafe for MemoryReader<MV, Store>where
MV: UnwindSafe,
Store: UnwindSafe,
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