Struct rc_zip::parse::ExtraFieldSettings
source · pub struct ExtraFieldSettings {
pub uncompressed_size_u32: u32,
pub compressed_size_u32: u32,
pub header_offset_u32: u32,
}
Expand description
Useful because zip64 extended information extra field has fixed order but optional fields. From the appnote:
If one of the size or offset fields in the Local or Central directory record is too small to hold the required data, a Zip64 extended information record is created. The order of the fields in the zip64 extended information record is fixed, but the fields MUST only appear if the corresponding Local or Central directory record field is set to 0xFFFF or 0xFFFFFFFF.
Fields§
§uncompressed_size_u32: u32
The uncompressed size field read from a local or central directory record If this is 0xFFFF_FFFF, then the zip64 extra field uncompressed size field will be present.
compressed_size_u32: u32
The compressed size field read from a local or central directory record If this is 0xFFFF_FFFF, then the zip64 extra field compressed size field will be present.
header_offset_u32: u32
The header offset field read from a central directory record (or zero for local directory records). If this is 0xFFFF_FFFF, then the zip64 extra field header offset field will be present.
Trait Implementations§
source§impl Clone for ExtraFieldSettings
impl Clone for ExtraFieldSettings
source§fn clone(&self) -> ExtraFieldSettings
fn clone(&self) -> ExtraFieldSettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExtraFieldSettings
impl Debug for ExtraFieldSettings
impl Copy for ExtraFieldSettings
Auto Trait Implementations§
impl Freeze for ExtraFieldSettings
impl RefUnwindSafe for ExtraFieldSettings
impl Send for ExtraFieldSettings
impl Sync for ExtraFieldSettings
impl Unpin for ExtraFieldSettings
impl UnwindSafe for ExtraFieldSettings
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)