forked from hjzc/ZipKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ZKLFHeader.h
48 lines (43 loc) · 1.36 KB
/
ZKLFHeader.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
//
// ZKLFHeader.h
// ZipKit
//
// Created by Karl Moskowski on 01/04/09.
//
#import <Foundation/Foundation.h>
@interface ZKLFHeader : NSObject {
@private
NSUInteger magicNumber;
NSUInteger versionNeededToExtract;
NSUInteger generalPurposeBitFlag;
NSUInteger compressionMethod;
NSDate *lastModDate;
NSUInteger crc;
unsigned long long compressedSize;
unsigned long long uncompressedSize;
NSUInteger filenameLength;
NSUInteger extraFieldLength;
NSString *filename;
NSData *extraField;
}
+ (ZKLFHeader *) recordWithData:(NSData *)data atOffset:(NSUInteger)offset;
+ (ZKLFHeader *) recordWithArchivePath:(NSString *)path atOffset:(unsigned long long)offset;
- (void) parseZip64ExtraField;
- (NSData *) zip64ExtraField;
- (NSData *) data;
- (NSUInteger) length;
- (BOOL) useZip64Extensions;
- (BOOL) isResourceFork;
@property (assign) NSUInteger magicNumber;
@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 (copy) NSString *filename;
@property (retain) NSData *extraField;
@end