@@ -39,9 +39,12 @@ NS_ASSUME_NONNULL_BEGIN
3939@protocol NOZCompressDelegate;
4040
4141// ! Block for when `NOZCompressOperation` completes
42- typedef void (^NOZCompressCompletionBlock)(NOZCompressOperation* op, NOZCompressResult* result);
42+ typedef void (^NOZCompressCompletionBlock)(NOZCompressOperation* op,
43+ NOZCompressResult* result);
4344// ! Block for dynamically selecting an `NOZCompressionMethod` and `NOZCompressionLevel` for a `NOZCompressOperation` when using `[NOZCompressionRequest addEntriesInDirectory:filterBlock:compressionSelectionBlock:]`
44- typedef void (^NOZCompressionSelectionBlock)(NSString * filePath, NOZCompressionMethod* compressionMethodOut, NOZCompressionLevel* compressionLevelOut);
45+ typedef void (^NOZCompressionSelectionBlock)(NSString * filePath,
46+ NOZCompressionMethod* compressionMethodOut,
47+ NOZCompressionLevel* compressionLevelOut);
4548// ! Block for dynamically filtering out files when using `[NOZCompressionRequest addEntriesInDirectory:filterBlock:compressionSelectionBlock:]`.
4649typedef BOOL (^NOZCompressionShouldExcludeFileBlock)(NSString * filePath);
4750
@@ -66,15 +69,17 @@ typedef BOOL(^NOZCompressionShouldExcludeFileBlock)(NSString* filePath);
6669 @param request The `NOZCompressRequest` of the what and how for compressing.
6770 @param delegate The `NOZCompressDelegate` for callbacks.
6871 */
69- - (instancetype )initWithRequest : (NOZCompressRequest *)request delegate : (nullable id <NOZCompressDelegate>)delegate NS_DESIGNATED_INITIALIZER;
72+ - (instancetype )initWithRequest : (NOZCompressRequest *)request
73+ delegate : (nullable id <NOZCompressDelegate>)delegate NS_DESIGNATED_INITIALIZER;
7074
7175/* *
7276 Convenience initializer
7377
7478 @param request The `NOZCompressRequest` of the what and how for compressing.
7579 @param completion The `NOZCompressCompletionBlock` to call once operation is finished.
7680 */
77- - (instancetype )initWithRequest : (NOZCompressRequest *)request completion : (nullable NOZCompressCompletionBlock)completion ;
81+ - (instancetype )initWithRequest : (NOZCompressRequest *)request
82+ completion : (nullable NOZCompressCompletionBlock)completion ;
7883
7984/* * Unavailable */
8085- (instancetype )init NS_UNAVAILABLE;
@@ -98,14 +103,16 @@ typedef BOOL(^NOZCompressionShouldExcludeFileBlock)(NSString* filePath);
98103 @param op The `NOZCompressOperation` that finished.
99104 @param result The `NOZCompressResult` for the operation.
100105 */
101- - (void )compressOperation : (NOZCompressOperation *)op didCompleteWithResult : (NOZCompressResult *)result ;
106+ - (void )compressOperation : (NOZCompressOperation *)op
107+ didCompleteWithResult : (NOZCompressResult *)result ;
102108
103109/* *
104110 Called when the operation updates it's overall progress.
105111
106112 _progress_ will be between `0.0f` and `1.0f`. A negative value indicates progress is indeterminant.
107113 */
108- - (void )compressOperation : (NOZCompressOperation *)op didUpdateProgress : (float )progress ;
114+ - (void )compressOperation : (NOZCompressOperation *)op
115+ didUpdateProgress : (float )progress ;
109116
110117@end
111118
@@ -132,9 +139,12 @@ typedef BOOL(^NOZCompressionShouldExcludeFileBlock)(NSString* filePath);
132139/* * Add an entry via `NSData` with a _name_ for the entry (used as the file name when decompressed) */
133140- (void )addDataEntry : (NSData *)data name : (NSString *)name ;
134141/* * Recursively add a directory of files as entries */
135- - (void )addEntriesInDirectory : (NSString *)directoryPath filterBlock : (nullable NOZCompressionShouldExcludeFileBlock)filterBlock compressionSelectionBlock : (nullable NOZCompressionSelectionBlock)selectionBlock ;
142+ - (void )addEntriesInDirectory : (NSString *)directoryPath
143+ filterBlock : (nullable NOZCompressionShouldExcludeFileBlock)filterBlock
144+ compressionSelectionBlock : (nullable NOZCompressionSelectionBlock)selectionBlock ;
136145/* * See `addEntriesInDirectory:filterBlock:compressionSelectionBlock:` */
137- - (void )addEntriesInDirectory : (NSString *)directoryPath compressionSelectionBlock : (nullable NOZCompressionSelectionBlock)block ;
146+ - (void )addEntriesInDirectory : (NSString *)directoryPath
147+ compressionSelectionBlock : (nullable NOZCompressionSelectionBlock)block ;
138148
139149/* *
140150 Designated initializer
0 commit comments