Differences From Artifact [4d9edd8589]:
- File src/OFZIPArchive.m — part of check-in [c8f7b90082] at 2017-07-22 20:50:27 on branch trunk — Split OFDataArray into OFData and OFMutableData (user: js, size: 13824) [annotate] [blame] [check-ins using]
To Artifact [8c3891b987]:
- File
src/OFZIPArchive.m
— part of check-in
[23e57c5040]
at
2017-07-22 23:04:35
on branch trunk
— OFFile: Simplify mode
This removes "b" for binary and always uses binary, as there is no good
reason to not use binary. (user: js, size: 13822) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
170 171 172 173 174 175 176 | return self; } #ifdef OF_HAVE_FILES - initWithPath: (OFString *)path { OFFile *file = [[OFFile alloc] initWithPath: path | | | 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 | return self; } #ifdef OF_HAVE_FILES - initWithPath: (OFString *)path { OFFile *file = [[OFFile alloc] initWithPath: path mode: @"r"]; @try { self = [self initWithSeekableStream: file]; } @finally { [file release]; } return self; |
︙ | ︙ | |||
327 328 329 330 331 332 333 | void *pool = objc_autoreleasePoolPush(); OFZIPArchiveEntry *entry = [_pathToEntryMap objectForKey: path]; OFZIPArchive_LocalFileHeader *localFileHeader; int64_t offset64; if (entry == nil) @throw [OFOpenItemFailedException exceptionWithPath: path | | | 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 | void *pool = objc_autoreleasePoolPush(); OFZIPArchiveEntry *entry = [_pathToEntryMap objectForKey: path]; OFZIPArchive_LocalFileHeader *localFileHeader; int64_t offset64; if (entry == nil) @throw [OFOpenItemFailedException exceptionWithPath: path mode: @"r" errNo: ENOENT]; [_lastReturnedStream close]; [_lastReturnedStream release]; _lastReturnedStream = nil; offset64 = [entry of_localFileHeaderOffset]; |
︙ | ︙ |