Expand description
ZIP format constants and structures for TorrentZip compliance.
Based on PKWARE APPNOTE 6.3.0 and TorrentZip specification.
Structs§
- Central
DirHeader - Central directory file header structure
- EndOf
Central Dir - End of central directory record
- Local
File Header - Local file header structure (before variable-length fields)
Constants§
- CENTRAL_
DIR_ HEADER_ SIG - Central directory file header signature
- COMPRESSION_
METHOD_ DEFLATE - Compression method: DEFLATE
- COMPRESSION_
METHOD_ STORED - Compression method: Stored (no compression)
- DOS_
DATE - Fixed DOS date for TorrentZip: December 24, 1996
- DOS_
TIME - Fixed DOS time for TorrentZip: 23:32:00 (11:32:00 PM)
- END_
OF_ CENTRAL_ DIR_ SIG - End of central directory record signature
- GENERAL_
PURPOSE_ FLAG - General purpose bit flag for TorrentZip.
- LOCAL_
FILE_ HEADER_ SIG - Local file header signature
- TORRENTZIP_
COMMENT_ LEN - Length of TorrentZip comment (TORRENTZIPPED-XXXXXXXX = 22 bytes)
- TORRENTZIP_
COMMENT_ PREFIX - TorrentZip archive comment prefix
- VERSION_
MADE_ BY - ZIP version made by (0 = MS-DOS compatibility, per original trrntzip)
- VERSION_
NEEDED - ZIP version needed to extract (2.0 = supports DEFLATE)
Functions§
- make_
torrentzip_ comment - Create the TorrentZip archive comment from a CRC32 value.