pub struct SuperBlock {
pub inode_count: u32,
pub block_size: u32,
pub fragment_entry_count: u32,
pub compression: Compression,
pub root_inode: InodeRef,
pub bytes_used: u64,
pub inode_table_start: u64,
pub directory_table_start: u64,
pub fragment_table_start: u64,
pub compression_options: Option<CompressionOptions>,
/* private fields */
}
Expand description
Superblock, containing archive metadata.
See https://dr-emann.github.io/squashfs/squashfs.html#_the_superblock
Fields§
§inode_count: u32
§block_size: u32
§fragment_entry_count: u32
§compression: Compression
§root_inode: InodeRef
§bytes_used: u64
Without padding
inode_table_start: u64
§directory_table_start: u64
§fragment_table_start: u64
§compression_options: Option<CompressionOptions>
Implementations§
Source§impl SuperBlock
impl SuperBlock
pub async fn from_reader(r: impl AsyncSeekBufRead) -> Result<Self, Error>
pub fn tables_length(&self) -> u64
Trait Implementations§
Source§impl Debug for SuperBlock
impl Debug for SuperBlock
Source§impl<'de> Deserialize<'de> for SuperBlock
impl<'de> Deserialize<'de> for SuperBlock
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SuperBlock
impl RefUnwindSafe for SuperBlock
impl Send for SuperBlock
impl Sync for SuperBlock
impl Unpin for SuperBlock
impl UnwindSafe for SuperBlock
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more