pub struct LocalFileHeader {
pub fixed: LocalFileHeaderFixed,
pub file_name: Vec<u8>,
pub extra_field: Vec<u8>,
}
Expand description
Local File Header
The local file header is prepended before each file.
The bytes after it are usually the file or an Encryption Header.
is is linked by an CentralDirectoryHeader
see 4.3.7
Fields§
§fixed: LocalFileHeaderFixed
§file_name: Vec<u8>
§extra_field: Vec<u8>
Trait Implementations§
Source§impl Clone for LocalFileHeader
impl Clone for LocalFileHeader
Source§fn clone(&self) -> LocalFileHeader
fn clone(&self) -> LocalFileHeader
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 LocalFileHeader
impl Debug for LocalFileHeader
Source§impl Parse for LocalFileHeader
impl Parse for LocalFileHeader
Source§impl ParseExtend for LocalFileHeader
impl ParseExtend for LocalFileHeader
type Error = DynamicSizeError
type Fixed = LocalFileHeaderFixed
Source§impl PartialEq for LocalFileHeader
impl PartialEq for LocalFileHeader
Source§impl PartialRecord for LocalFileHeader
impl PartialRecord for LocalFileHeader
type Partial = LocalFileHeaderFixed
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 LocalFileHeader
Auto Trait Implementations§
impl Freeze for LocalFileHeader
impl RefUnwindSafe for LocalFileHeader
impl Send for LocalFileHeader
impl Sync for LocalFileHeader
impl Unpin for LocalFileHeader
impl UnwindSafe for LocalFileHeader
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