Add ZipFile::header_start
This function returns the offset of the local zip header for a ZipFile object
This commit is contained in:
parent
5d0f198124
commit
cd867ecdc2
1 changed files with 5 additions and 0 deletions
|
@ -508,6 +508,11 @@ impl<'a> ZipFile<'a> {
|
||||||
pub fn data_start(&self) -> u64 {
|
pub fn data_start(&self) -> u64 {
|
||||||
self.data.data_start
|
self.data.data_start
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Get the starting offset of the zip header for this file
|
||||||
|
pub fn header_start(&self) -> u64 {
|
||||||
|
self.data.header_start
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Read for ZipFile<'a> {
|
impl<'a> Read for ZipFile<'a> {
|
||||||
|
|
Loading…
Add table
Reference in a new issue