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 *_Nullable _slidingWindow;
41 uint16_t _slidingWindowIndex, _slidingWindowMask;
49 uint16_t position, length;
52 struct huffman_tree *_Nullable litLenTree;
53 struct huffman_tree *_Nullable distTree;
54 struct huffman_tree *_Nullable codeLenTree;
55 struct huffman_tree *_Nullable treeIter;
56 uint8_t *_Nullable lengths;
57 uint16_t receivedCount;
58 uint8_t value, litLenCodesCount, distCodesCount;
59 uint8_t codeLenCodesCount;
62 struct huffman_tree *_Nullable litLenTree;
63 struct huffman_tree *_Nullable distTree;
64 struct huffman_tree *_Nullable treeIter;
66 uint16_t value, length, distance, extraBits;
69 bool _inLastBlock, _atEndOfStream;
79 + (instancetype)streamWithStream: (
OFStream *)stream;
81 -
init OF_UNAVAILABLE;
91 - 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