Skip to main content

Module spec

Module spec 

Source
Expand description

ZIP format constants and structures for TorrentZip compliance.

Based on PKWARE APPNOTE 6.3.0 and TorrentZip specification.

Structs§

CentralDirHeader
Central directory file header structure
EndOfCentralDir
End of central directory record
LocalFileHeader
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.