18 OF_ASSUME_NONNULL_BEGIN
20 #define OF_LHA_DECOMPRESSING_STREAM_BUFFER_SIZE 4096
23 @interface OFLHADecompressingStream:
OFStream
26 uint8_t _distanceBits, _dictionaryBits;
27 unsigned char _buffer[OF_LHA_DECOMPRESSING_STREAM_BUFFER_SIZE];
28 uint32_t _bytesConsumed;
29 uint16_t _bufferIndex, _bufferLength;
31 uint8_t _bitIndex, _savedBitsLength;
33 unsigned char *_slidingWindow;
34 uint32_t _slidingWindowIndex, _slidingWindowMask;
36 uint16_t _symbolsLeft;
37 struct of_huffman_tree *_Nullable _codeLenTree, *_Nullable _litLenTree;
38 struct of_huffman_tree *_Nullable _distTree, *_Nullable _treeIter;
39 uint16_t _codesCount, _codesReceived;
40 bool _currentIsExtendedLength, _skip;
41 uint8_t *_Nullable _codesLengths;
46 @property (readonly, nonatomic) uint32_t bytesConsumed;
48 - (instancetype)of_initWithStream: (
OFStream *)stream
49 distanceBits: (uint8_t)distanceBits
50 dictionaryBits: (uint8_t)dictionaryBits;
A base class for different types of streams.
Definition: OFStream.h:191