17 #import "OFKernelEventObserver.h"
19 OF_ASSUME_NONNULL_BEGIN
21 #define OF_INFLATE_STREAM_BUFFER_SIZE 4096
32 OF_SUBCLASSING_RESTRICTED
36 unsigned char _buffer[OF_INFLATE_STREAM_BUFFER_SIZE];
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 of_huffman_tree *_Nullable litLenTree;
54 struct of_huffman_tree *_Nullable distTree;
55 struct of_huffman_tree *_Nullable codeLenTree;
56 struct of_huffman_tree *_Nullable treeIter;
57 uint8_t *_Nullable lengths;
58 uint16_t receivedCount;
59 uint8_t value, litLenCodesCount, distCodesCount;
60 uint8_t codeLenCodesCount;
63 struct of_huffman_tree *_Nullable litLenTree;
64 struct of_huffman_tree *_Nullable distTree;
65 struct of_huffman_tree *_Nullable treeIter;
67 uint16_t value, length, distance, extraBits;
70 bool _inLastBlock, _atEndOfStream;
80 + (instancetype)streamWithStream: (
OFStream *)stream;
82 - (instancetype)init OF_UNAVAILABLE;
92 - (instancetype)initWithStream: (
OFStream *)stream OF_DESIGNATED_INITIALIZER;
A class that handles Deflate decompression transparently for an underlying stream.
Definition: OFInflateStream.h:35
A base class for different types of streams.
Definition: OFStream.h:191
This protocol is implemented by classes which can be observed for readiness for reading by OFKernelEv...
Definition: OFKernelEventObserver.h:85