19 OF_ASSUME_NONNULL_BEGIN
21 #define OF_INFLATE_STREAM_BUFFER_SIZE 4096 31 #ifdef OF_INFLATE_STREAM_M 35 uint8_t _buffer[OF_INFLATE_STREAM_BUFFER_SIZE];
36 uint16_t _bufferIndex, _bufferLength;
38 uint8_t _bitIndex, _savedBitsLength;
40 uint8_t *_slidingWindow;
41 uint16_t _slidingWindowIndex, _slidingWindowMask;
49 uint16_t position, length;
52 struct huffman_tree *litLenTree, *distTree;
53 struct huffman_tree *codeLenTree, *treeIter;
55 uint16_t receivedCount;
56 uint8_t value, litLenCodesCount, distCodesCount;
57 uint8_t codeLenCodesCount;
60 struct huffman_tree *litLenTree, *distTree;
61 struct huffman_tree *treeIter;
63 uint16_t value, length, distance, extraBits;
66 bool _inLastBlock, _atEndOfStream;
76 + (instancetype)streamWithStream: (
OFStream *)stream;
78 -
init OF_UNAVAILABLE;
88 - initWithStream: (
OFStream *)stream OF_DESIGNATED_INITIALIZER;
A class that handles Deflate decompression transparently for an underlying stream.
Definition: OFInflateStream.h:29
id init()
Initializes an already allocated object.
Definition: OFObject.m:488
A base class for different types of streams.
Definition: OFStream.h:88