17 #import "OFKernelEventObserver.h" 19 OF_ASSUME_NONNULL_BEGIN
21 #define OFInflate64StreamBufferSize 4096 32 OF_SUBCLASSING_RESTRICTED
36 unsigned char _buffer[OFInflate64StreamBufferSize];
37 uint16_t _bufferIndex, _bufferLength;
39 uint8_t _bitIndex, _savedBitsLength;
41 unsigned char *_Nullable _slidingWindow;
42 uint16_t _slidingWindowIndex, _slidingWindowMask;
50 uint16_t position, length;
53 struct _OFHuffmanTree *_Nullable litLenTree;
54 struct _OFHuffmanTree *_Nullable distTree;
55 struct _OFHuffmanTree *_Nullable codeLenTree;
56 struct _OFHuffmanTree *_Nullable treeIter;
57 uint8_t *_Nullable lengths;
58 uint16_t receivedCount;
59 uint8_t value, litLenCodesCount, distCodesCount;
60 uint8_t codeLenCodesCount;
63 struct _OFHuffmanTree *_Nullable litLenTree;
64 struct _OFHuffmanTree *_Nullable distTree;
65 struct _OFHuffmanTree *_Nullable treeIter;
67 uint16_t value, length, distance, extraBits;
70 bool _inLastBlock, _atEndOfStream;
79 @property (retain, nonatomic)
OFStream *underlyingStream;
88 + (instancetype)streamWithStream: (
OFStream *)stream;
90 - (instancetype)init OF_UNAVAILABLE;
100 - (instancetype)initWithStream: (
OFStream *)stream OF_DESIGNATED_INITIALIZER;
103 OF_ASSUME_NONNULL_END
This protocol is implemented by classes which can be observed for readiness for reading by OFKernelEv...
A base class for different types of streams.
Definition: OFStream.h:186
A class that handles Deflate decompression transparently for an underlying stream.
Definition: OFInflate64Stream.h:33