21#import "OFKernelEventObserver.h"
23OF_ASSUME_NONNULL_BEGIN
25#define OFInflateStreamBufferSize 4096
36OF_SUBCLASSING_RESTRICTED
40 unsigned char _buffer[OFInflateStreamBufferSize];
41 uint16_t _bufferIndex, _bufferLength;
43 uint8_t _bitIndex, _savedBitsLength;
45 unsigned char *_Nullable _slidingWindow;
46 uint16_t _slidingWindowIndex, _slidingWindowMask;
54 uint16_t position, length;
57 struct _OFHuffmanTree *_Nullable litLenTree;
58 struct _OFHuffmanTree *_Nullable distTree;
59 struct _OFHuffmanTree *_Nullable codeLenTree;
60 struct _OFHuffmanTree *_Nullable treeIter;
61 uint8_t *_Nullable lengths;
62 uint16_t receivedCount;
63 uint8_t value, litLenCodesCount, distCodesCount;
64 uint8_t codeLenCodesCount;
67 struct _OFHuffmanTree *_Nullable litLenTree;
68 struct _OFHuffmanTree *_Nullable distTree;
69 struct _OFHuffmanTree *_Nullable treeIter;
71 uint16_t value, length, distance, extraBits;
74 bool _inLastBlock, _atEndOfStream;
83@property (retain, nonatomic)
OFStream *underlyingStream;
92+ (instancetype)streamWithStream: (
OFStream *)stream;
94- (instancetype)init OF_UNAVAILABLE;
104- (instancetype)initWithStream: (
OFStream *)stream OF_DESIGNATED_INITIALIZER;
A class that handles Deflate decompression transparently for an underlying stream.
Definition OFInflateStream.h:39
A base class for different types of streams.
Definition OFStream.h:192
This protocol is implemented by classes which can be observed for readiness for reading by OFKernelEv...
Definition OFKernelEventObserver.h:88