@@ -13,27 +13,31 @@ * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #import "OFStream.h" +#import "OFKernelEventObserver.h" OF_ASSUME_NONNULL_BEGIN #define OF_INFLATE_STREAM_BUFFER_SIZE 4096 /*! * @class OFInflateStream OFInflateStream.h ObjFW/OFInflateStream.h + * + * @note This class only conforms to OFReadyForReadingObserving if the + * underlying stream does so, too. * * @brief A class that handles Deflate decompression transparently for an * underlying stream. */ -@interface OFInflateStream: OFStream +@interface OFInflateStream: OFStream { #ifdef OF_INFLATE_STREAM_M @public #endif - OFStream *_stream; + OF_KINDOF(OFStream *) _stream; uint8_t _buffer[OF_INFLATE_STREAM_BUFFER_SIZE]; uint16_t _bufferIndex, _bufferLength; uint8_t _byte; uint8_t _bitIndex, _savedBitsLength; uint16_t _savedBits;