pub enum LClusterEntry {
Head(LClusterHead),
NonHead {
delta0: u16,
},
}Expand description
An entry describing a single logical cluster, which most often corresponds with a single logical, uncompressed block. These entries build a map for where to find the data in the compressed physical blocks.
Variants§
Head(LClusterHead)
A head cluster. See LClusterHead.
NonHead
A nonhead cluster. These are blocks of data contained within the extent described by the most recent head lcluster.
Implementations§
Source§impl LClusterEntry
impl LClusterEntry
Sourcepub fn read_full_entry(
reader: &dyn Reader,
offset: u64,
) -> Result<Self, ErofsError>
pub fn read_full_entry( reader: &dyn Reader, offset: u64, ) -> Result<Self, ErofsError>
Parse a single lcluster entry. This is for the CompressedFull data layout, for the
CompressedCompact data layout, see [read_compact_lcluster_entry].
Trait Implementations§
Source§impl Clone for LClusterEntry
impl Clone for LClusterEntry
Source§fn clone(&self) -> LClusterEntry
fn clone(&self) -> LClusterEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LClusterEntry
Source§impl Debug for LClusterEntry
impl Debug for LClusterEntry
impl Eq for LClusterEntry
Source§impl PartialEq for LClusterEntry
impl PartialEq for LClusterEntry
impl StructuralPartialEq for LClusterEntry
Auto Trait Implementations§
impl Freeze for LClusterEntry
impl RefUnwindSafe for LClusterEntry
impl Send for LClusterEntry
impl Sync for LClusterEntry
impl Unpin for LClusterEntry
impl UnsafeUnpin for LClusterEntry
impl UnwindSafe for LClusterEntry
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