pub struct CentralDirectoryHeader {
pub fixed: CentralDirectoryHeaderFixed,
pub file_name: Vec<u8>,
pub extra_field: Vec<u8>,
pub file_comment: Vec<u8>,
}
Expand description
Central Directory Header
The Central Directory Structure contains of multiple Central Directory
Headers and a Digital Signature. Note: the documentation is confusing about
this, the Digital Signature is left out in 4.3.6
and Archive Decryption
Header and ArchiveExtraDataRecord
seem to be not part of it, though they
have a strong dependency.
Each Central Directory Header links to exactly one LocalFileHeader
see 4.3.12
Fields§
§fixed: CentralDirectoryHeaderFixed
§file_name: Vec<u8>
§extra_field: Vec<u8>
§file_comment: Vec<u8>
Trait Implementations§
Source§impl Clone for CentralDirectoryHeader
impl Clone for CentralDirectoryHeader
Source§fn clone(&self) -> CentralDirectoryHeader
fn clone(&self) -> CentralDirectoryHeader
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 CentralDirectoryHeader
impl Debug for CentralDirectoryHeader
Source§impl Parse for CentralDirectoryHeader
impl Parse for CentralDirectoryHeader
Source§impl ParseExtend for CentralDirectoryHeader
impl ParseExtend for CentralDirectoryHeader
Source§impl PartialEq for CentralDirectoryHeader
impl PartialEq for CentralDirectoryHeader
Source§impl PartialRecord for CentralDirectoryHeader
impl PartialRecord for CentralDirectoryHeader
type Partial = CentralDirectoryHeaderFixed
fn get_partial(&self) -> &Self::Partial
Source§fn is_valid_sizes(&self) -> bool
fn is_valid_sizes(&self) -> bool
all dynamic records contain dynamic data and length information in the
fixed part. Verify if those 2 values are matching
impl StructuralPartialEq for CentralDirectoryHeader
Auto Trait Implementations§
impl Freeze for CentralDirectoryHeader
impl RefUnwindSafe for CentralDirectoryHeader
impl Send for CentralDirectoryHeader
impl Sync for CentralDirectoryHeader
impl Unpin for CentralDirectoryHeader
impl UnwindSafe for CentralDirectoryHeader
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