@@ -84,10 +84,13 @@ #ifdef OF_HAVE_SOCKETS OFReadyForReadingObserving, OFReadyForWritingObserving, #endif OFCopying> { +#ifndef OF_SEEKABLE_STREAM_M +@private +#endif char *_readBuffer, *_writeBuffer; size_t _readBufferLength, _writeBufferLength; bool _writeBufferEnabled, _blocking, _waitingForDelimiter; } @@ -1039,15 +1042,15 @@ */ - (size_t)writeFormat: (OFConstantString*)format arguments: (va_list)arguments; /*! - * @brief Returns the number of bytes still present in the internal read buffer. + * @brief Returns whether data is present in the internal read buffer. * - * @return The number of bytes still present in the internal read buffer. + * @return Whether data is present in the internal read buffer */ -- (size_t)numberOfBytesInReadBuffer; +- (bool)hasDataInReadBuffer; /*! * @brief Returns whether the stream is in blocking mode. * * @return Whether the stream is in blocking mode