pub struct DataDescriptor {
pub crc_32: u32,
pub compressed_size: u32,
pub uncompressed_size: u32,
}
Expand description
Data descriptor
the data descriptior is prepended to the file data.
It might be used sometimes, in this case the corresponding fields in
LocalFileHeader
are zero.
Note: There exists a zip64 variant of this descriptor:
DataDescriptorZip64
Note: the DataDescriptor should contain a signature,
see the struct DataDescriptorSignature
. Its not standart but recomended.
When parsing you are on your own if the first 4 bytes a the signature or
just a random crc32 according to the documentation
see DataDescriptorZip64Signature
for Zip64 with Signature
see 4.3.9
Fields§
§crc_32: u32
§compressed_size: u32
§uncompressed_size: u32
Implementations§
Trait Implementations§
Source§impl Clone for DataDescriptor
impl Clone for DataDescriptor
Source§fn clone(&self) -> DataDescriptor
fn clone(&self) -> DataDescriptor
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DataDescriptor
impl Debug for DataDescriptor
Source§impl Parse for DataDescriptor
impl Parse for DataDescriptor
Source§impl PartialEq for DataDescriptor
impl PartialEq for DataDescriptor
impl StructuralPartialEq for DataDescriptor
Auto Trait Implementations§
impl Freeze for DataDescriptor
impl RefUnwindSafe for DataDescriptor
impl Send for DataDescriptor
impl Sync for DataDescriptor
impl Unpin for DataDescriptor
impl UnwindSafe for DataDescriptor
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