[ArchiveTools] Add TGZ notes

This commit is contained in:
Matt Nadareski
2016-08-24 21:50:11 -07:00
parent 42148b7fc8
commit 5839a538d8

View File

@@ -509,6 +509,28 @@ namespace SabreTools.Helper
return roms; return roms;
} }
/*
(Torrent)GZ Header Format (https://tools.ietf.org/html/rfc1952)
00 Identification 1 (0x1F)
01 Identification 2 (0x8B)
02 Compression Method (0-7 reserved, 8 deflate; 0x08)
03 Flags (0 FTEXT, 1 FHCRC, 2 FEXTRA, 3 FNAME, 4 FCOMMENT, 5 reserved, 6 reserved, 7 reserved; 0x04)
04-07 Modification time (Unix format; 0x00, 0x00, 0x00, 0x00)
08 Extra Flags (2 maximum compression, 4 fastest algorithm; 0x00)
09 OS (See list on https://tools.ietf.org/html/rfc1952; 0x00)
0A-0B [if FEXTRA set] Length of extra field (mirrored; 0x1C, 0x00)
0C-ww [if FEXTRA set] Extra field
0C-1B MD5 Hash
1C-1F CRC hash
20-27 Int64 size (mirrored)
ww+1-xx [if FNAME set] Original filename, 00 terminated
xx+1-yy [if FCOMMENT set] File comment, 00 terminated
yy+1-yy+03 [if FHCRC set] CRC16
yy+04-zz Compressed blocks
zz+1-zz+5 CRC32
zz+6-zz+10 Size (< 4GiB, mirrored)
*/
/// <summary> /// <summary>
/// Retrieve file information for a single torrent GZ file /// Retrieve file information for a single torrent GZ file
/// </summary> /// </summary>