pub struct SizeFile {
pub header: SizeHeader,
pub entries: HashMap<Vec<u8>, SizeEntry>,
pub tags: Vec<SizeTag>,
pub size_order: Vec<Vec<u8>>,
pub parse_order: Vec<Vec<u8>>,
}
Expand description
Size file
Fields§
§header: SizeHeader
Header information
entries: HashMap<Vec<u8>, SizeEntry>
Size entries indexed by partial EKey
Tags for conditional size calculation
size_order: Vec<Vec<u8>>
Entries ordered by size (largest first)
parse_order: Vec<Vec<u8>>
Entries in parse order (for tag mask application)
Implementations§
Source§impl SizeFile
impl SizeFile
Sourcepub fn get_file_size(&self, ekey: &[u8]) -> Option<u32>
pub fn get_file_size(&self, ekey: &[u8]) -> Option<u32>
Get file size by partial EKey
Sourcepub fn get_total_size(&self) -> u64
pub fn get_total_size(&self) -> u64
Get total installation size (all files)
Calculate size for specific tags
Sourcepub fn get_statistics(&self) -> SizeStatistics
pub fn get_statistics(&self) -> SizeStatistics
Calculate statistics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SizeFile
impl RefUnwindSafe for SizeFile
impl Send for SizeFile
impl Sync for SizeFile
impl Unpin for SizeFile
impl UnwindSafe for SizeFile
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