forked from hjzc/ZipKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ZKCDTrailer.h
40 lines (35 loc) · 1.26 KB
/
ZKCDTrailer.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
//
// ZKCDTrailer.h
// ZipKit
//
// Created by Karl Moskowski on 01/04/09.
//
#import <Foundation/Foundation.h>
@interface ZKCDTrailer : NSObject {
@private
NSUInteger magicNumber;
NSUInteger thisDiskNumber;
NSUInteger diskNumberWithStartOfCentralDirectory;
NSUInteger numberOfCentralDirectoryEntriesOnThisDisk;
NSUInteger totalNumberOfCentralDirectoryEntries;
unsigned long long sizeOfCentralDirectory;
unsigned long long offsetOfStartOfCentralDirectory;
NSUInteger commentLength;
NSString *comment;
}
+ (ZKCDTrailer *) recordWithData:(NSData *)data atOffset:(NSUInteger) offset;
+ (ZKCDTrailer *) recordWithData:(NSData *)data;
+ (ZKCDTrailer *) recordWithArchivePath:(NSString *) path;
- (NSData *) data;
- (NSUInteger) length;
- (BOOL) useZip64Extensions;
@property (assign) NSUInteger magicNumber;
@property (assign) NSUInteger thisDiskNumber;
@property (assign) NSUInteger diskNumberWithStartOfCentralDirectory;
@property (assign) NSUInteger numberOfCentralDirectoryEntriesOnThisDisk;
@property (assign) NSUInteger totalNumberOfCentralDirectoryEntries;
@property (assign) unsigned long long sizeOfCentralDirectory;
@property (assign) unsigned long long offsetOfStartOfCentralDirectory;
@property (assign) NSUInteger commentLength;
@property (copy) NSString *comment;
@end