Skip to main content

read_zip_part

Function read_zip_part 

Source
pub fn read_zip_part<R: Read + Seek>(
    archive: &mut ZipArchive<R>,
    part_name: &str,
) -> Result<Vec<u8>>
Expand description

Reads the raw bytes of a ZIP entry by name.

ยงErrors

Returns DocError::Zip if the entry is not found or cannot be read.