chore: use pub(crate) for header parsing
used internally by the appendable ZipWriter
This commit is contained in:
parent
10da026ff6
commit
4ce5791164
1 changed files with 2 additions and 2 deletions
|
@ -209,7 +209,7 @@ fn make_reader<'a>(
|
||||||
impl<R: Read + io::Seek> ZipArchive<R> {
|
impl<R: Read + io::Seek> ZipArchive<R> {
|
||||||
/// Get the directory start offset and number of files. This is done in a
|
/// Get the directory start offset and number of files. This is done in a
|
||||||
/// separate function to ease the control flow design.
|
/// separate function to ease the control flow design.
|
||||||
pub fn get_directory_counts(
|
pub(crate) fn get_directory_counts(
|
||||||
reader: &mut R,
|
reader: &mut R,
|
||||||
footer: &spec::CentralDirectoryEnd,
|
footer: &spec::CentralDirectoryEnd,
|
||||||
cde_start_pos: u64,
|
cde_start_pos: u64,
|
||||||
|
@ -515,7 +515,7 @@ fn unsupported_zip_error<T>(detail: &'static str) -> ZipResult<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Parse a central directory entry to collect the information for the file.
|
/// Parse a central directory entry to collect the information for the file.
|
||||||
pub fn central_header_to_zip_file<R: Read + io::Seek>(
|
pub(crate) fn central_header_to_zip_file<R: Read + io::Seek>(
|
||||||
reader: &mut R,
|
reader: &mut R,
|
||||||
archive_offset: u64,
|
archive_offset: u64,
|
||||||
) -> ZipResult<ZipFileData> {
|
) -> ZipResult<ZipFileData> {
|
||||||
|
|
Loading…
Add table
Reference in a new issue