21#import "OFArchiveEntry.h"
23OF_ASSUME_NONNULL_BEGIN
28 OFZIPArchiveEntryCompressionMethodNone = 0,
29 OFZIPArchiveEntryCompressionMethodShrink = 1,
30 OFZIPArchiveEntryCompressionMethodReduceFactor1 = 2,
31 OFZIPArchiveEntryCompressionMethodReduceFactor2 = 3,
32 OFZIPArchiveEntryCompressionMethodReduceFactor3 = 4,
33 OFZIPArchiveEntryCompressionMethodReduceFactor4 = 5,
34 OFZIPArchiveEntryCompressionMethodImplode = 6,
35 OFZIPArchiveEntryCompressionMethodDeflate = 8,
36 OFZIPArchiveEntryCompressionMethodDeflate64 = 9,
37 OFZIPArchiveEntryCompressionMethodBZIP2 = 12,
38 OFZIPArchiveEntryCompressionMethodLZMA = 14,
39 OFZIPArchiveEntryCompressionMethodWavPack = 97,
40 OFZIPArchiveEntryCompressionMethodPPMd = 98
41} OFZIPArchiveEntryCompressionMethod;
113 uint16_t _generalPurposeBitFlag;
114 OFZIPArchiveEntryCompressionMethod _compressionMethod;
115 uint16_t _lastModifiedFileTime, _lastModifiedFileDate;
117 unsigned long long _compressedSize, _uncompressedSize;
119 OFData *_Nullable _extraField;
121 uint32_t _startDiskNumber;
122 uint16_t _internalAttributes;
123 uint32_t _versionSpecificAttributes;
124 int64_t _localFileHeaderOffset;
133@property OF_NULLABLE_PROPERTY (readonly, copy, nonatomic)
OFData *extraField;
142@property (readonly, nonatomic)
152@property (readonly, nonatomic)
167@property (readonly, nonatomic)
168 OFZIPArchiveEntryCompressionMethod compressionMethod;
173@property (readonly, nonatomic) uint32_t CRC32;
181@property (readonly, nonatomic) uint32_t versionSpecificAttributes;
188@property (readonly, nonatomic) uint16_t generalPurposeBitFlag;
190- (instancetype)init OF_UNAVAILABLE;
212 OFZIPArchiveEntryCompressionMethod compressionMethod);
233#import "OFMutableZIPArchiveEntry.h"
OFZIPArchiveEntryAttributeCompatibility
Attribute compatibility part of ZIP versions.
Definition OFZIPArchiveEntry.h:46
@ OFZIPArchiveEntryAttributeCompatibilityAtariST
Definition OFZIPArchiveEntry.h:58
@ OFZIPArchiveEntryAttributeCompatibilityOpenVMS
Definition OFZIPArchiveEntry.h:52
@ OFZIPArchiveEntryAttributeCompatibilityOS400
Definition OFZIPArchiveEntry.h:84
@ OFZIPArchiveEntryAttributeCompatibilityAcornRISCOS
Definition OFZIPArchiveEntry.h:74
@ OFZIPArchiveEntryAttributeCompatibilityWindowsNTFS
Definition OFZIPArchiveEntry.h:68
@ OFZIPArchiveEntryAttributeCompatibilityBeOS
Definition OFZIPArchiveEntry.h:80
@ OFZIPArchiveEntryAttributeCompatibilityMacintosh
Definition OFZIPArchiveEntry.h:62
@ OFZIPArchiveEntryAttributeCompatibilityMSDOS
Definition OFZIPArchiveEntry.h:48
@ OFZIPArchiveEntryAttributeCompatibilityMVS
Definition OFZIPArchiveEntry.h:70
@ OFZIPArchiveEntryAttributeCompatibilityCPM
Definition OFZIPArchiveEntry.h:66
@ OFZIPArchiveEntryAttributeCompatibilityVFAT
Definition OFZIPArchiveEntry.h:76
@ OFZIPArchiveEntryAttributeCompatibilityAlternateMVS
Definition OFZIPArchiveEntry.h:78
@ OFZIPArchiveEntryAttributeCompatibilityVSE
Definition OFZIPArchiveEntry.h:72
@ OFZIPArchiveEntryAttributeCompatibilityUNIX
Definition OFZIPArchiveEntry.h:54
@ OFZIPArchiveEntryAttributeCompatibilityOS2HPFS
Definition OFZIPArchiveEntry.h:60
@ OFZIPArchiveEntryAttributeCompatibilityOSX
Definition OFZIPArchiveEntry.h:86
@ OFZIPArchiveEntryAttributeCompatibilityVM_CMS
Definition OFZIPArchiveEntry.h:56
@ OFZIPArchiveEntryAttributeCompatibilityTandem
Definition OFZIPArchiveEntry.h:82
@ OFZIPArchiveEntryAttributeCompatibilityZSystem
Definition OFZIPArchiveEntry.h:64
@ OFZIPArchiveEntryAttributeCompatibilityAmiga
Definition OFZIPArchiveEntry.h:50
OFString * OFZIPArchiveEntryCompressionMethodName(OFZIPArchiveEntryCompressionMethod compressionMethod)
Converts the ZIP entry compression method to a string.
Definition OFZIPArchiveEntry.m:114
OFZIPArchiveEntryExtraFieldTag
Tags for the extra field.
Definition OFZIPArchiveEntry.h:92
@ OFZIPArchiveEntryExtraFieldTagZIP64
Definition OFZIPArchiveEntry.h:94
size_t OFZIPArchiveEntryExtraFieldFind(OFData *extraField, OFZIPArchiveEntryExtraFieldTag tag, uint16_t *size)
Gets a pointer to and the size of the extensible data field with the specified tag.
Definition OFZIPArchiveEntry.m:150
OFString * OFZIPArchiveEntryVersionToString(uint16_t version)
Converts the ZIP entry version to a string.
Definition OFZIPArchiveEntry.m:36
A class for storing arbitrary data in an array.
Definition OFData.h:46
A class for storing, accessing and comparing dates.
Definition OFDate.h:34
A class which provides methods to read and write files.
Definition OFFile.h:41
The root class for all other classes inside ObjFW.
Definition OFObject.h:692
A class for handling strings.
Definition OFString.h:143
A class which represents an entry in the central directory of a ZIP archive.
Definition OFZIPArchiveEntry.h:111
A class which represents an entry in an archive.
Definition OFArchiveEntry.h:33
A protocol for the creation of copies.
Definition OFObject.h:1350
A protocol for the creation of mutable copies.
Definition OFObject.h:1371