21 #import "OFHuffmanTree.h" 23 OF_ASSUME_NONNULL_BEGIN
25 #define OFLHADecompressingStreamBufferSize 4096 28 @interface OFLHADecompressingStream:
OFStream 31 uint8_t _distanceBits, _dictionaryBits;
32 unsigned char _buffer[OFLHADecompressingStreamBufferSize];
33 uint32_t _bytesConsumed;
34 uint16_t _bufferIndex, _bufferLength;
36 uint8_t _bitIndex, _savedBitsLength;
38 unsigned char *_slidingWindow;
39 uint32_t _slidingWindowIndex, _slidingWindowMask;
41 uint16_t _symbolsLeft;
42 OFHuffmanTree _Nullable _codeLenTree;
43 OFHuffmanTree _Nullable _litLenTree;
44 OFHuffmanTree _Nullable _distTree;
45 OFHuffmanTree _Nullable _treeIter;
46 uint16_t _codesCount, _codesReceived;
47 bool _currentIsExtendedLength, _skip;
48 uint8_t *_Nullable _codesLengths;
53 @property (readonly, nonatomic) uint32_t bytesConsumed;
55 - (instancetype)of_initWithStream: (
OFStream *)stream
56 distanceBits: (uint8_t)distanceBits
57 dictionaryBits: (uint8_t)dictionaryBits;
A base class for different types of streams.
Definition: OFStream.h:278