pub struct ZipHeaderReader;Expand description
Remote ZIP Central Directory Header Streamer.
Implementations§
Source§impl ZipHeaderReader
impl ZipHeaderReader
Sourcepub fn find_eocd(bytes: &[u8]) -> Option<usize>
pub fn find_eocd(bytes: &[u8]) -> Option<usize>
Scan tail byte slice (last ~64KB of ZIP archive) for End of Central Directory (EOCD) signature PK\x05\x06.
Sourcepub fn parse_central_directory(
tail_bytes: &[u8],
) -> Result<Vec<ZipEntryLocation>, String>
pub fn parse_central_directory( tail_bytes: &[u8], ) -> Result<Vec<ZipEntryLocation>, String>
Parse End of Central Directory record and Central Directory entries from tail bytes.
Trait Implementations§
Source§impl Clone for ZipHeaderReader
impl Clone for ZipHeaderReader
Source§fn clone(&self) -> ZipHeaderReader
fn clone(&self) -> ZipHeaderReader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ZipHeaderReader
impl RefUnwindSafe for ZipHeaderReader
impl Send for ZipHeaderReader
impl Sync for ZipHeaderReader
impl Unpin for ZipHeaderReader
impl UnsafeUnpin for ZipHeaderReader
impl UnwindSafe for ZipHeaderReader
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more