pub struct SizeEntry {
pub checksum: Checksum,
pub compressed: u64,
pub unpacked: u64,
pub objtype: Option<ObjectType>,
}Expand description
One decoded ostree.sizes entry.
§Packed form
[32 bytes checksum][varuint64 compressed size][varuint64 unpacked size][1 byte objtype]The two sizes are LEB128 varints (varint). The last
byte is the numeric value of the ObjectType. Newer commits write this
byte. unpack_entry also accepts an entry with no type byte.
Fields§
§checksum: ChecksumThe checksum of the object.
compressed: u64The compressed size on disk, in bytes.
unpacked: u64The uncompressed size, in bytes.
objtype: Option<ObjectType>The object type, or None if the entry has no type byte.
Older commits omit the type byte.
Trait Implementations§
impl Eq for SizeEntry
impl StructuralPartialEq for SizeEntry
Auto Trait Implementations§
impl Forget for SizeEntry
impl Freeze for SizeEntry
impl Move for SizeEntry
impl RefUnwindSafe for SizeEntry
impl Send for SizeEntry
impl Sync for SizeEntry
impl Unpin for SizeEntry
impl UnsafeUnpin for SizeEntry
impl UnwindSafe for SizeEntry
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