14#import <Foundation/Foundation.h>
16NS_ASSUME_NONNULL_BEGIN
24@property(strong, nonatomic, nullable) NSFileHandle *
fileHandle;
26@property(strong, nonatomic, nullable) NSData *
data;
39- (instancetype)initWithPath:(nullable NSString *)path;
51- (instancetype)initWithPath:(nullable NSString *)path tail:(NSUInteger)tail;
65- (instancetype)initWithData:(nullable NSData *)data range:(NSRange)range;
74- (BOOL)fileExists:(nullable NSString *)name;
84- (NSUInteger)uncompressedSize:(nullable NSString *)name;
92- (nullable NSArray<NSString *> *)
fileList;
104- (nullable NSMutableData *)uncompress:(nullable NSString *)name;
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