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;
71 uint16_t value, length, distance, extraBits;
75 } *_Nullable _inflateCtx;
86 @property (retain, nonatomic)
OFStream *underlyingStream;
97 + (instancetype)streamWithStream: (
OFStream *)stream
98 OF_DEPRECATED(ObjFW, 1, 5, "Use +[streamWithStream:mode:] instead");
109 + (instancetype)streamWithStream: (
OFStream *)stream mode: (
OFString *)mode;
111 - (instancetype)init OF_UNAVAILABLE;
123 - (instancetype)initWithStream: (
OFStream *)stream
124 OF_DEPRECATED(ObjFW, 1, 5, "Use -[initWithStream:mode:] instead!");
136 - (instancetype)initWithStream: (
OFStream *)stream
137 mode: (
OFString *)mode OF_DESIGNATED_INITIALIZER;
140 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