21 #import "OFKernelEventObserver.h" 23 OF_ASSUME_NONNULL_BEGIN
25 #define OFInflateStreamBufferSize 4096 39 unsigned char *_Nullable _slidingWindow;
40 uint16_t _slidingWindowIndex;
41 struct OFInflateContext {
42 unsigned char buffer[OFInflateStreamBufferSize];
43 uint16_t bufferIndex, bufferLength;
45 uint8_t bitIndex, savedBitsLength;
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;
73 uint16_t distance, extraBits;
77 } *_Nullable _inflateCtx;
88 @property (retain, nonatomic)
OFStream *underlyingStream;
99 + (instancetype)streamWithStream: (
OFStream *)stream
100 OF_DEPRECATED(ObjFW, 1, 5, "Use +[streamWithStream:mode:] instead");
111 + (instancetype)streamWithStream: (
OFStream *)stream mode: (
OFString *)mode;
113 - (instancetype)init OF_UNAVAILABLE;
125 - (instancetype)initWithStream: (
OFStream *)stream
126 OF_DEPRECATED(ObjFW, 1, 5, "Use -[initWithStream:mode:] instead!");
138 - (instancetype)initWithStream: (
OFStream *)stream
139 mode: (
OFString *)mode OF_DESIGNATED_INITIALIZER;
142 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:278
A class for handling strings.
Definition: OFString.h:142
A class that handles Deflate decompression transparently for an underlying stream.
Definition: OFDeflateStream.h:36