SevenZipExtractor
SevenZipExtractor copied to clipboard
Signature Offsets
Looks like some of the archive signatures have to be found at a specific offset, like:
SevenZipFormat.Tar // 257 byte offset
SevenZipFormat.Iso // 0x8001, 0x8801 or 0x9001 byte offset
SevenZipFormat.Lzh // 2 byte offset
SevenZipFormat.Hfs // 0x400 byte offset
https://en.wikipedia.org/wiki/List_of_file_signatures
I checked this with a renamed tar archive, with renamed extension *.tmp is doesn't detect it as tarball and returns:
"*.tmp is not a known archive type"