17#import "OFHuffmanTree.h"
19OF_ASSUME_NONNULL_BEGIN
21#define OFLHADecompressingStreamBufferSize 4096
24@interface OFLHADecompressingStream:
OFStream
27 uint8_t _distanceBits, _dictionaryBits;
28 unsigned char _buffer[OFLHADecompressingStreamBufferSize];
29 uint32_t _bytesConsumed;
30 uint16_t _bufferIndex, _bufferLength;
32 uint8_t _bitIndex, _savedBitsLength;
34 unsigned char *_slidingWindow;
35 uint32_t _slidingWindowIndex, _slidingWindowMask;
37 uint16_t _symbolsLeft;
38 OFHuffmanTree _Nullable _codeLenTree;
39 OFHuffmanTree _Nullable _litLenTree;
40 OFHuffmanTree _Nullable _distTree;
41 OFHuffmanTree _Nullable _treeIter;
42 uint16_t _codesCount, _codesReceived;
43 bool _currentIsExtendedLength, _skip;
44 uint8_t *_Nullable _codesLengths;
49@property (readonly, nonatomic) uint32_t bytesConsumed;
51- (instancetype)of_initWithStream: (
OFStream *)stream
52 distanceBits: (uint8_t)distanceBits
53 dictionaryBits: (uint8_t)dictionaryBits;
A base class for different types of streams.
Definition OFStream.h:188