Differences From Artifact [97efb45aaf]:
- File
src/OFLHAArchive.m
— part of check-in
[9a95da71d5]
at
2024-02-28 00:24:42
on branch trunk
— Add OFZooArchive
Only support for reading so far.
Compression methods 0 (uncompressed) and 2 (LZ77 + Huffman, apparently
identical to lh4/lh5) are supported. (user: js, size: 14379) [annotate] [blame] [check-ins using]
To Artifact [7fd2208cb9]:
- File src/OFLHAArchive.m — part of check-in [b431203426] at 2024-03-03 19:29:53 on branch trunk — OFZooArchive: Add write support (user: js, size: 14380) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
294 295 296 297 298 299 300 | { if (_stream == nil) @throw [OFNotOpenException exceptionWithObject: self]; @try { [_lastReturnedStream close]; } @catch (OFNotOpenException *e) { | | | 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 | { if (_stream == nil) @throw [OFNotOpenException exceptionWithObject: self]; @try { [_lastReturnedStream close]; } @catch (OFNotOpenException *e) { /* Might have already been closed by the user - that's fine. */ } /* LHA archives should be terminated with a header of size 0 */ if (_hasWritten) [_stream writeBuffer: "" length: 1]; _lastReturnedStream = nil; |
︙ | ︙ |