pub struct Reader<'a, I: 'a + ReadAt> { /* private fields */ }
Expand description
A reader of data from the virtual disk image.
Trait Implementations§
Auto Trait Implementations§
impl<'a, I> Freeze for Reader<'a, I>
impl<'a, I> RefUnwindSafe for Reader<'a, I>where
I: RefUnwindSafe,
impl<'a, I> Send for Reader<'a, I>where
I: Sync,
impl<'a, I> Sync for Reader<'a, I>where
I: Sync,
impl<'a, I> Unpin for Reader<'a, I>
impl<'a, I> UnwindSafe for Reader<'a, I>where
I: RefUnwindSafe,
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
Source§impl<R> ReadBytesExt for Rwhere
R: ReadAt,
impl<R> ReadBytesExt for Rwhere
R: ReadAt,
Source§fn read_u8_at(&self, pos: u64) -> Result<u8, Error>
fn read_u8_at(&self, pos: u64) -> Result<u8, Error>
Reads an unsigned 8-bit integer at an offset.
Source§fn read_i8_at(&self, pos: u64) -> Result<i8, Error>
fn read_i8_at(&self, pos: u64) -> Result<i8, Error>
Reads a signed 8-bit integer at an offset.
Source§fn read_u16_at<T>(&self, pos: u64) -> Result<u16, Error>where
T: ByteOrder,
fn read_u16_at<T>(&self, pos: u64) -> Result<u16, Error>where
T: ByteOrder,
Reads an unsigned 16-bit integer at an offset.
Source§fn read_i16_at<T>(&self, pos: u64) -> Result<i16, Error>where
T: ByteOrder,
fn read_i16_at<T>(&self, pos: u64) -> Result<i16, Error>where
T: ByteOrder,
Reads a signed 16-bit integer at an offset.
Source§fn read_u32_at<T>(&self, pos: u64) -> Result<u32, Error>where
T: ByteOrder,
fn read_u32_at<T>(&self, pos: u64) -> Result<u32, Error>where
T: ByteOrder,
Reads an unsigned 32-bit integer at an offset.
Source§fn read_i32_at<T>(&self, pos: u64) -> Result<i32, Error>where
T: ByteOrder,
fn read_i32_at<T>(&self, pos: u64) -> Result<i32, Error>where
T: ByteOrder,
Reads a signed 32-bit integer at an offset.
Source§fn read_u64_at<T>(&self, pos: u64) -> Result<u64, Error>where
T: ByteOrder,
fn read_u64_at<T>(&self, pos: u64) -> Result<u64, Error>where
T: ByteOrder,
Reads an unsigned 64-bit integer at an offset.
Source§fn read_i64_at<T>(&self, pos: u64) -> Result<i64, Error>where
T: ByteOrder,
fn read_i64_at<T>(&self, pos: u64) -> Result<i64, Error>where
T: ByteOrder,
Reads a signed 64-bit integer at an offset.
Source§fn read_uint_at<T>(&self, pos: u64, nbytes: usize) -> Result<u64, Error>where
T: ByteOrder,
fn read_uint_at<T>(&self, pos: u64, nbytes: usize) -> Result<u64, Error>where
T: ByteOrder,
Reads an unsigned
nbytes
-bit integer at an offset.Source§fn read_int_at<T>(&self, pos: u64, nbytes: usize) -> Result<i64, Error>where
T: ByteOrder,
fn read_int_at<T>(&self, pos: u64, nbytes: usize) -> Result<i64, Error>where
T: ByteOrder,
Reads a signed
nbytes
-bit integer at an offset.