pub struct PackFooter {
pub stub_size: u64,
pub assets_offset: u64,
pub assets_size: u64,
pub manifest_offset: u64,
pub manifest_size: u64,
pub checksum: u32,
}Expand description
Fixed-size footer at the end of a packed binary.
Layout (64 bytes total):
Offset Size Field
0 8 magic ("SMOLPACK")
8 4 version (u32 LE)
12 8 stub_size (u64 LE) - size of stub executable
20 8 assets_offset (u64 LE) - offset to compressed assets
28 8 assets_size (u64 LE) - size of compressed assets
36 8 manifest_offset (u64 LE) - offset to manifest JSON
44 8 manifest_size (u64 LE) - size of manifest JSON
52 4 checksum (u32 LE) - CRC32 of assets + manifest
56 8 reserved (zeroes)Fields§
§stub_size: u64Size of the stub executable.
assets_offset: u64Offset to compressed assets blob.
assets_size: u64Size of compressed assets blob.
manifest_offset: u64Offset to manifest JSON.
manifest_size: u64Size of manifest JSON.
checksum: u32CRC32 checksum of assets + manifest.
Implementations§
Trait Implementations§
Source§fn clone(&self) -> PackFooter
fn clone(&self) -> PackFooter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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