25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
/**
* @class OFZooArchiveEntry OFZooArchiveEntry.h ObjFW/OFZooArchiveEntry.h
*
* @brief A class which represents an entry in an Zoo archive.
*/
@interface OFZooArchiveEntry: OFObject <OFArchiveEntry, OFCopying>
{
uint8_t _compressionMethod;
#ifdef OF_ZOO_ARCHIVE_M
@public
#endif
unsigned long long _nextHeaderOffset, _dataOffset;
@protected
uint16_t _lastModifiedFileDate, _lastModifiedFileTime;
uint16_t _CRC16;
unsigned long long _uncompressedSize, _compressedSize;
uint16_t _minVersionNeeded;
bool _deleted;
OFString *_Nullable _fileComment;
OFString *_fileName, *_Nullable _directoryName;
OFNumber *_Nullable _POSIXPermissions;
int8_t _timeZone;
OF_RESERVE_IVARS(OFZooArchiveEntry, 4)
}
/**
* @brief The compression method of the entry.
*/
@property (readonly, nonatomic) uint8_t compressionMethod;
/**
* @brief The CRC16 of the file.
|
|
>
>
>
>
>
>
|
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
/**
* @class OFZooArchiveEntry OFZooArchiveEntry.h ObjFW/OFZooArchiveEntry.h
*
* @brief A class which represents an entry in an Zoo archive.
*/
@interface OFZooArchiveEntry: OFObject <OFArchiveEntry, OFCopying>
{
uint8_t _headerType, _compressionMethod;
#ifdef OF_ZOO_ARCHIVE_M
@public
#endif
unsigned long long _nextHeaderOffset, _dataOffset;
@protected
uint16_t _lastModifiedFileDate, _lastModifiedFileTime;
uint16_t _CRC16;
unsigned long long _uncompressedSize, _compressedSize;
uint16_t _minVersionNeeded;
bool _deleted;
OFString *_Nullable _fileComment;
OFString *_fileName, *_Nullable _directoryName;
OFNumber *_Nullable _POSIXPermissions;
int8_t _timeZone;
uint16_t _operatingSystemIdentifier;
OF_RESERVE_IVARS(OFZooArchiveEntry, 4)
}
/**
* @brief The header type of the entry.
*/
@property (readonly, nonatomic) uint8_t headerType;
/**
* @brief The compression method of the entry.
*/
@property (readonly, nonatomic) uint8_t compressionMethod;
/**
* @brief The CRC16 of the file.
|
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
@property (readonly, nonatomic) uint16_t minVersionNeeded;
/**
* @brief Whether the file was deleted.
*/
@property (readonly, nonatomic, getter=isDeleted) bool deleted;
/**
* @brief The time zone in which the file was stored, as an offset in hours
* from UTC (as a float).
*/
@property OF_NULLABLE_PROPERTY (readonly, nonatomic) OFNumber *timeZone;
- (instancetype)init OF_UNAVAILABLE;
@end
OF_ASSUME_NONNULL_END
|
>
>
>
>
>
|
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
@property (readonly, nonatomic) uint16_t minVersionNeeded;
/**
* @brief Whether the file was deleted.
*/
@property (readonly, nonatomic, getter=isDeleted) bool deleted;
/**
* @brief The operating system identifier of the file.
*/
@property (readonly, nonatomic) uint16_t operatingSystemIdentifier;
/**
* @brief The time zone in which the file was stored, as an offset in hours
* from UTC (as a float).
*/
@property OF_NULLABLE_PROPERTY (readonly, nonatomic) OFNumber *timeZone;
- (instancetype)init OF_UNAVAILABLE;
@end
OF_ASSUME_NONNULL_END
|