Differences From Artifact [19e9187eb0]:
- File
src/OFLHAArchive.m
— part of check-in
[744956a000]
at
2018-06-04 22:47:15
on branch trunk
— OFLHAArchive: Prefill the sliding window with ' '
Apparently, there are two incompatible variants of LHA: One where the
sliding window is prefilled with zeros and one where it is prefilled
with spaces. It seems prefilling it with spaces is the original way,
while LHA on Amiga prefilled it with zeros.As it is impossible to detect which one was used, a flag will be added
later to provide an Amiga compatibility mode. (user: js, size: 18365) [annotate] [blame] [check-ins using]
To Artifact [a7a157c7cf]:
- File src/OFLHAArchive.m — part of check-in [fd9801229f] at 2018-06-06 21:55:45 on branch trunk — Deflate & LHA: Return buffer to stream on close (user: js, size: 18560) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
688 689 690 691 692 693 694 695 696 697 698 699 700 701 | return ([_stream isAtEndOfStream] && _bufferLength - _bufferIndex == 0 && _state == STATE_BLOCK_HEADER); } - (void)close { [_stream release]; _stream = nil; [super close]; } @end | > > > > > | 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 | return ([_stream isAtEndOfStream] && _bufferLength - _bufferIndex == 0 && _state == STATE_BLOCK_HEADER); } - (void)close { /* Give back our buffer to the stream, in case it's shared */ [_stream unreadFromBuffer: _buffer + _bufferIndex length: _bufferLength - _bufferIndex]; _bufferIndex = _bufferLength = 0; [_stream release]; _stream = nil; [super close]; } @end |
︙ | ︙ |