pub struct SectionDescriptor {
pub section_type: String,
pub next: u64,
pub section_size: u64,
pub offset: u64,
}Expand description
Parsed EWF v1 section descriptor. Forms a linked list within each segment.
Layout (little-endian):
| Offset | Size | Field |
|---|---|---|
| 0 | 16 | Type (NUL-padded string) |
| 16 | 8 | Next (absolute file offset) |
| 24 | 8 | SectionSize |
| 72 | 4 | Checksum |
Fields§
§section_type: StringSection type string (e.g. “header”, “volume”, “table”, “sectors”, “done”).
next: u64Absolute file offset of the next section descriptor (0 = end of chain).
section_size: u64Size of this section’s data (including the 76-byte descriptor itself).
offset: u64Absolute file offset where this descriptor was found.
Implementations§
Trait Implementations§
Source§impl Clone for SectionDescriptor
impl Clone for SectionDescriptor
Source§fn clone(&self) -> SectionDescriptor
fn clone(&self) -> SectionDescriptor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SectionDescriptor
impl Debug for SectionDescriptor
Source§impl PartialEq for SectionDescriptor
impl PartialEq for SectionDescriptor
impl Eq for SectionDescriptor
impl StructuralPartialEq for SectionDescriptor
Auto Trait Implementations§
impl Freeze for SectionDescriptor
impl RefUnwindSafe for SectionDescriptor
impl Send for SectionDescriptor
impl Sync for SectionDescriptor
impl Unpin for SectionDescriptor
impl UnsafeUnpin for SectionDescriptor
impl UnwindSafe for SectionDescriptor
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.