## 读取初始化
archive_read_new()
Allocates and initializes a struct archive object suitable for reading from an archive.
分配和初始化适合从存档中读取的struct归档对象。
选择压缩或解压格式
archive_read_support_format_all(struct archive *)
Enables support for all available formats except the “raw” format.
支持除“原始”格式之外的所有可用格式.
archive_read_support_compression_all(),
1.archive_read_support_compression_bzip2(),
2.archive_read_support_compression_compress(),
3.archive_read_support_compression_gzip(),
4.archive_read_support_compression_none()
Enables auto-detection code and decompression support for the specified compression. Note that ``none’’ is always enabled by default. For convenience,archive_read_support_compression_all() enables all available decompression code.
为指定的压缩启用自动检测代码和解压缩支持。请注意,默认情况下始终启用“无”。为方便起见,archive_read_su