Differences From Artifact [b00facb75e]:
- File src/OFLHAArchive.m — part of check-in [2d14df1979] at 2024-02-27 21:06:42 on branch trunk — Add missing imports when using --disable-sockets (user: js, size: 14377) [annotate] [blame] [check-ins using]
To 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]
︙ | ︙ | |||
412 413 414 415 416 417 418 | _CRC16 = OFCRC16(_CRC16, buffer, ret); if (_toRead == 0) { _atEndOfStream = true; if (_CRC16 != _entry.CRC16) { OFString *actualChecksum = [OFString stringWithFormat: | | | | 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 | _CRC16 = OFCRC16(_CRC16, buffer, ret); if (_toRead == 0) { _atEndOfStream = true; if (_CRC16 != _entry.CRC16) { OFString *actualChecksum = [OFString stringWithFormat: @"%04" @PRIX16, _CRC16]; OFString *expectedChecksum = [OFString stringWithFormat: @"%04" @PRIX16, _entry.CRC16]; @throw [OFChecksumMismatchException exceptionWithActualChecksum: actualChecksum expectedChecksum: expectedChecksum]; } } |
︙ | ︙ |