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.