detectCompressedArchive
fn
CompressedArchiveInfo detectCompressedArchive(const(ubyte)[] header)Detect if data is a compressed archive and return info.
Checks for known compression wrappers around archive formats, such as GZIP+TAR (.tar.gz), BZIP2+TAR (.tar.bz2), XZ+TAR (.tar.xz), LZ4+TAR, and ZSTD+TAR.
Parameters
header | First bytes of the data to examine. |
Returns
A CompressedArchiveInfo describing the detected layers.