forked from hjzc/ZipKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ZKCDHeader.h
67 lines (62 loc) · 2.04 KB
/
ZKCDHeader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
63
64
65
66
67
//
// ZKCDHeader.h
// ZipKit
//
// Created by Karl Moskowski on 01/04/09.
//
#import <Foundation/Foundation.h>
@interface ZKCDHeader : NSObject {
@private
NSUInteger magicNumber;
NSUInteger versionMadeBy;
NSUInteger versionNeededToExtract;
NSUInteger generalPurposeBitFlag;
NSUInteger compressionMethod;
NSDate *lastModDate;
NSUInteger crc;
unsigned long long compressedSize;
unsigned long long uncompressedSize;
NSUInteger filenameLength;
NSUInteger extraFieldLength;
NSUInteger commentLength;
NSUInteger diskNumberStart;
NSUInteger internalFileAttributes;
NSUInteger externalFileAttributes;
unsigned long long localHeaderOffset;
NSString *filename;
NSData *extraField;
NSString *comment;
NSMutableData *cachedData;
}
+ (ZKCDHeader *) recordWithData:(NSData *)data atOffset:(NSUInteger)offset;
+ (ZKCDHeader *) recordWithArchivePath:(NSString *)path atOffset:(unsigned long long)offset;
- (void) parseZip64ExtraField;
- (NSData *) zip64ExtraField;
- (NSData *) data;
- (NSUInteger) length;
- (BOOL) useZip64Extensions;
- (NSNumber *) posixPermissions;
- (BOOL) isDirectory;
- (BOOL) isSymLink;
- (BOOL) isResourceFork;
@property (assign) NSUInteger magicNumber;
@property (assign) NSUInteger versionMadeBy;
@property (assign) NSUInteger versionNeededToExtract;
@property (assign) NSUInteger generalPurposeBitFlag;
@property (assign) NSUInteger compressionMethod;
@property (retain) NSDate *lastModDate;
@property (assign) NSUInteger crc;
@property (assign) unsigned long long compressedSize;
@property (assign) unsigned long long uncompressedSize;
@property (assign) NSUInteger filenameLength;
@property (assign) NSUInteger extraFieldLength;
@property (assign) NSUInteger commentLength;
@property (assign) NSUInteger diskNumberStart;
@property (assign) NSUInteger internalFileAttributes;
@property (assign) NSUInteger externalFileAttributes;
@property (assign) unsigned long long localHeaderOffset;
@property (copy) NSString *filename;
@property (retain) NSData *extraField;
@property (copy) NSString *comment;
@property (retain) NSMutableData *cachedData;
@end