pub struct EwfVolume {
pub chunk_count: u32,
pub sectors_per_chunk: u32,
pub bytes_per_sector: u32,
pub sector_count: u64,
}Expand description
Image geometry extracted from the EWF volume section.
Fields§
§chunk_count: u32§sectors_per_chunk: u32§bytes_per_sector: u32§sector_count: u64Implementations§
Source§impl EwfVolume
impl EwfVolume
Sourcepub fn parse(buf: &[u8]) -> Result<Self>
pub fn parse(buf: &[u8]) -> Result<Self>
Parse volume data from bytes following a “volume”/“disk” section descriptor.
Sourcepub fn chunk_size(&self) -> u64
pub fn chunk_size(&self) -> u64
Chunk size in bytes (sectors_per_chunk * bytes_per_sector).
Sourcepub fn total_size(&self) -> u64
pub fn total_size(&self) -> u64
Total image size in bytes (bytes_per_sector * sector_count).
Trait Implementations§
impl Eq for EwfVolume
impl StructuralPartialEq for EwfVolume
Auto Trait Implementations§
impl Freeze for EwfVolume
impl RefUnwindSafe for EwfVolume
impl Send for EwfVolume
impl Sync for EwfVolume
impl Unpin for EwfVolume
impl UnsafeUnpin for EwfVolume
impl UnwindSafe for EwfVolume
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.