detectTarFormat
fn
ArchiveFormat detectTarFormat(const(ubyte)[] header)Detect TAR format from header bytes.
Checks for ustar magic at offset 257 or GNU magic.
Parameters
header | First bytes of the archive data. |
Returns
ArchiveFormat.TAR if detected, AUTO_DETECT otherwise.