pub struct Footer {
pub format_version: u16,
pub flags: Flags,
pub manifest_offset: u64,
pub manifest_compressed: u64,
pub manifest_original: u64,
pub payload_offset: u64,
pub payload_size: u64,
pub dict_offset: u64,
pub dict_size: u32,
pub manifest_checksum: [u8; 4],
}Fields§
§format_version: u16Format version number (currently 1).
flags: FlagsFeature flags describing optional sections and capabilities.
manifest_offset: u64Byte offset where the compressed manifest begins.
manifest_compressed: u64Size of the manifest after compression.
manifest_original: u64Size of the manifest before compression.
payload_offset: u64Byte offset where the payload section begins.
payload_size: u64Total size of the payload section in bytes.
dict_offset: u64Byte offset of the zstd dictionary, or 0 if absent.
dict_size: u32Size of the zstd dictionary in bytes, or 0 if absent.
manifest_checksum: [u8; 4]xxHash32 checksum of the compressed manifest for integrity verification.
Implementations§
Sourcepub fn is_stored(&self) -> bool
pub fn is_stored(&self) -> bool
Whether the payload is stored raw (no zstd). When true the runtime must skip decompression and use payload bytes directly.
pub fn write_to<W: Write>(&self, w: &mut W) -> Result<()>
pub fn read_from<R: Read>(r: &mut R) -> Result<Self>
pub fn from_bytes(buf: &[u8; 76]) -> Result<Self>
Trait Implementations§
Auto Trait Implementations§
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