Expand description
Archives read from a caller-supplied reader instead of a path.
ArchiveReader is the input of list_reader,
verify_reader and
extract_to_sink. The constructors encode what
each format needs: a TAR stream is forward-only, so any Read will do,
while ZIP and 7z read a directory at the end of the archive and need Seek.
The caller states the format with ArchiveReader::tar,
ArchiveReader::seekable or ArchiveReader::of_type, or has it
sniffed from the leading bytes by ArchiveReader::detect and
ArchiveReader::detect_stream.
Structs§
- Archive
Reader - An archive supplied as a reader.
Enums§
- Seekable
Format - A format that is read through a directory at the end of the archive, and so needs a seekable source.