Struct ext4_read_only::structs::ExtentHeader
source · #[repr(C)]pub struct ExtentHeader {
pub eh_magic: U16,
pub eh_ecount: U16,
pub eh_max: U16,
pub eh_depth: U16,
pub eh_gen: U32,
}
Fields§
§eh_magic: U16
Magic number: 0xF30A
eh_ecount: U16
Number of valid entries.
eh_max: U16
Entry capacity.
eh_depth: U16
Depth distance this node is from its leaves.
0
here means it is a leaf node.
eh_gen: U32
Generation of extent tree.
Implementations§
source§impl ExtentHeader
impl ExtentHeader
pub fn check_magic(&self) -> Result<(), ParsingError>
Trait Implementations§
source§impl FromBytes for ExtentHeaderwhere
U16: FromBytes,
U32: FromBytes,
impl FromBytes for ExtentHeaderwhere
U16: FromBytes,
U32: FromBytes,
§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
source§impl FromZeros for ExtentHeaderwhere
U16: FromZeros,
U32: FromZeros,
impl FromZeros for ExtentHeaderwhere
U16: FromZeros,
U32: FromZeros,
impl Unaligned for ExtentHeaderwhere
U16: Unaligned,
U32: Unaligned,
Auto Trait Implementations§
impl Freeze for ExtentHeader
impl RefUnwindSafe for ExtentHeader
impl Send for ExtentHeader
impl Sync for ExtentHeader
impl Unpin for ExtentHeader
impl UnwindSafe for ExtentHeader
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