24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#import "OFInvalidArgumentException.h"
#import "OFOutOfRangeException.h"
@implementation OFMutableZIPArchiveEntry
@dynamic fileName, fileComment, extraField, versionMadeBy, minVersionNeeded;
@dynamic modificationDate, compressionMethod, compressedSize, uncompressedSize;
@dynamic CRC32, versionSpecificAttributes, generalPurposeBitFlag;
@dynamic of_localFileHeaderOffset;
/*
* The following are optional in OFMutableArchiveEntry, but Apple GCC 4.0.1 is
* buggy and needs this to stop complaining.
*/
@dynamic POSIXPermissions, ownerAccountID, groupOwnerAccountID;
@dynamic ownerAccountName, groupOwnerAccountName;
|
|
|
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#import "OFInvalidArgumentException.h"
#import "OFOutOfRangeException.h"
@implementation OFMutableZIPArchiveEntry
@dynamic fileName, fileComment, extraField, versionMadeBy, minVersionNeeded;
@dynamic modificationDate, compressionMethod, compressedSize, uncompressedSize;
@dynamic CRC32, versionSpecificAttributes, generalPurposeBitFlag;
@dynamic of_startDiskNumber, of_localFileHeaderOffset;
/*
* The following are optional in OFMutableArchiveEntry, but Apple GCC 4.0.1 is
* buggy and needs this to stop complaining.
*/
@dynamic POSIXPermissions, ownerAccountID, groupOwnerAccountID;
@dynamic ownerAccountName, groupOwnerAccountName;
|
168
169
170
171
172
173
174
175
176
177
178
179
180
181
|
_versionSpecificAttributes = versionSpecificAttributes;
}
- (void)setGeneralPurposeBitFlag: (uint16_t)generalPurposeBitFlag
{
_generalPurposeBitFlag = generalPurposeBitFlag;
}
- (void)of_setLocalFileHeaderOffset: (int64_t)localFileHeaderOffset
{
if (localFileHeaderOffset < 0)
@throw [OFInvalidArgumentException exception];
_localFileHeaderOffset = localFileHeaderOffset;
|
>
>
>
>
>
|
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
|
_versionSpecificAttributes = versionSpecificAttributes;
}
- (void)setGeneralPurposeBitFlag: (uint16_t)generalPurposeBitFlag
{
_generalPurposeBitFlag = generalPurposeBitFlag;
}
- (void)of_setStartDiskNumber: (uint32_t)startDiskNumber
{
_startDiskNumber = startDiskNumber;
}
- (void)of_setLocalFileHeaderOffset: (int64_t)localFileHeaderOffset
{
if (localFileHeaderOffset < 0)
@throw [OFInvalidArgumentException exception];
_localFileHeaderOffset = localFileHeaderOffset;
|