JubeatPlus 3.9.11
Loading...
Searching...
No Matches
KUnzip.h
Go to the documentation of this file.
1
13
14#import <Foundation/Foundation.h>
15
16NS_ASSUME_NONNULL_BEGIN
17
21@interface KUnzip : NSObject
22
24@property(strong, nonatomic, nullable) NSFileHandle *fileHandle;
26@property(strong, nonatomic, nullable) NSData *data;
28@property(assign, nonatomic) NSUInteger dataCurrentPos;
30@property(readonly, nonatomic) NSRange dataRange;
31
39- (instancetype)initWithPath:(nullable NSString *)path;
40
51- (instancetype)initWithPath:(nullable NSString *)path tail:(NSUInteger)tail;
52
65- (instancetype)initWithData:(nullable NSData *)data range:(NSRange)range;
66
74- (BOOL)fileExists:(nullable NSString *)name;
75
84- (NSUInteger)uncompressedSize:(nullable NSString *)name;
85
92- (nullable NSArray<NSString *> *)fileList;
93
104- (nullable NSMutableData *)uncompress:(nullable NSString *)name;
105
106@end
107
108NS_ASSUME_NONNULL_END
109
110// code: language=Objective-C
111// kate: hl Objective-C;
112// vim: set ft=objc :
Reads named entries out of one packed archive.
Definition KUnzip.h:22
nullable NSArray< NSString * > * fileList()
Lists the names of every entry in the archive.
Definition KUnzip.m:110
NSRange dataRange
The byte range of the backing store the archive occupies.
Definition KUnzip.h:30
NSFileHandle * fileHandle
The file handle a file-handle-backed archive reads through; set by its open callback.
Definition KUnzip.h:24
NSUInteger dataCurrentPos
The current read position of a memory-backed archive within data.
Definition KUnzip.h:28
NSData * data
The bytes a memory-backed archive reads from.
Definition KUnzip.h:26