torrentzip
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
torrentzip [2022/01/31 22:21] – [File name Encoding] gordonj | torrentzip [2024/10/06 18:17] (current) – [File data x:] johnsanc | ||
---|---|---|---|
Line 28: | Line 28: | ||
^Type ^Attribute ^Value ^Description ^ | ^Type ^Attribute ^Value ^Description ^ | ||
|UInt32|Local file header signature|(0x04034b50)| | | |UInt32|Local file header signature|(0x04034b50)| | | ||
- | |UInt16|Version needed to extract|20|File is compressed using Deflate compression| | + | |UInt16|Version needed to extract|20 |
|UInt16|General purpose bit flag|2|Maximum compression option was used, bit 11 (0x800) is set for unicode filename| | |UInt16|General purpose bit flag|2|Maximum compression option was used, bit 11 (0x800) is set for unicode filename| | ||
|UInt16|Compression method|8|The file is Deflated| | |UInt16|Compression method|8|The file is Deflated| | ||
Line 37: | Line 37: | ||
|UInt32|Uncompressed size| |File Uncompressed Size| | |UInt32|Uncompressed size| |File Uncompressed Size| | ||
|UInt16|Filename length| |Filename length| | |UInt16|Filename length| |Filename length| | ||
- | |UInt16|Extra field length|0|No extra field information| | + | |UInt16|Extra field length| |Normally 0, Length of Extra field data if zip64 extra field information |
|Byte[]|Filename (variable size)| |Byte array of filename| | |Byte[]|Filename (variable size)| |Byte array of filename| | ||
- | |**ⓘ NOTE:** \\ The default values show are required to have consistent torrentzipped files. Default time/date of 11:32pm 12/24/1996 is the date of the first ever MAME release.| | + | <WRAP info>The default values show are required to have consistent torrentzipped files. Default time/date of 11:32pm 12/24/1996 is the date of the first ever MAME release.</ |
==== File data x: ==== | ==== File data x: ==== | ||
- | The data compression must be exactly as ZLib version 1.1.3 using maximum compression level 9. | + | The data compression must be exactly as ZLib version 1.1.3 using maximum compression level 9. All files and empty directories must be compressed with the Deflate method, which is method 8. |
Line 51: | Line 51: | ||
|UInt32|Central file header signature|(0x02014b50)| | | |UInt32|Central file header signature|(0x02014b50)| | | ||
|UInt16|Version made by|0|MS_DOS and OS/2 (FAT/FAT32 file systems)| | |UInt16|Version made by|0|MS_DOS and OS/2 (FAT/FAT32 file systems)| | ||
- | |UInt16|Version needed to extract|20|File is compressed using Deflate compression| | + | |UInt16|Version needed to extract|20 |
|UInt16|General purpose bit flag|2|Maximum compression option was used, bit 11 (0x800) is set for unicode filename| | |UInt16|General purpose bit flag|2|Maximum compression option was used, bit 11 (0x800) is set for unicode filename| | ||
|UInt16|Compression method|8|The file is Deflated| | |UInt16|Compression method|8|The file is Deflated| | ||
Line 60: | Line 60: | ||
|UInt32|Uncompressed size| |File Uncompressed Size| | |UInt32|Uncompressed size| |File Uncompressed Size| | ||
|UInt16|File name length| |Filename length| | |UInt16|File name length| |Filename length| | ||
- | |UInt16|Extra field length|0|No extra field information| | + | |UInt16|Extra field length| |Normally 0, Length of Extra field data if zip64 extra field information |
|UInt16|File comment length|0|No file comment| | |UInt16|File comment length|0|No file comment| | ||
|UInt16|Disk number start|0|Multi disk storage not used so set to disk 0| | |UInt16|Disk number start|0|Multi disk storage not used so set to disk 0| | ||
Line 80: | Line 80: | ||
|Byte[22]|.ZIP file comment|TORRENTZIPPED-XXXXXXXX| | | |Byte[22]|.ZIP file comment|TORRENTZIPPED-XXXXXXXX| | | ||
- | |**ⓘ NOTE:** \\ See above ' | + | <WRAP info>See above ' |
Line 89: | Line 89: | ||
This comment ensures that if any change is made to the files within the zip this checksum will no longer match the byte data in the central directory, and in this way we can check the validity of a torrentzip file. | This comment ensures that if any change is made to the files within the zip this checksum will no longer match the byte data in the central directory, and in this way we can check the validity of a torrentzip file. | ||
- | ===== File name Encoding ===== | + | ===== Filename |
- | The filenames of the compressed files in a zip file are stored in the local header and the central directory as a byte arrays, zip was original build on early IBM PCs, and as such uses [[https:// | + | The filenames of the compressed files in a zip file are stored in the local header and the central directory as byte arrays. Zip was original build on early IBM PCs, and as such uses [[https:// |
torrentzip.1643667706.txt.gz · Last modified: 2022/01/31 21:21 (external edit)