Differences From Artifact [16a1b1d069]:
- File src/OFStream.h — part of check-in [246cfe0807] at 2014-02-18 18:50:30 on branch trunk — Documentation: Show correct imports (user: js, size: 39327) [annotate] [blame] [check-ins using]
To Artifact [10f43f7343]:
- File
src/OFStream.h
— part of check-in
[acc999a75e]
at
2014-05-31 17:57:21
on branch trunk
— OFStream: Add -[hasDataInReadBuffer].
This replaces -[numberOfBytesInReadBuffer], as it's not always known how
many bytes there are exactly and thus the number would often be wrong
(e.g. because data is compressed). (user: js, size: 39343) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
82 83 84 85 86 87 88 89 90 91 92 93 94 95 | */ @interface OFStream: OFObject < #ifdef OF_HAVE_SOCKETS OFReadyForReadingObserving, OFReadyForWritingObserving, #endif OFCopying> { char *_readBuffer, *_writeBuffer; size_t _readBufferLength, _writeBufferLength; bool _writeBufferEnabled, _blocking, _waitingForDelimiter; } #ifdef OF_HAVE_PROPERTIES @property (getter=isWriteBufferEnabled) bool writeBufferEnabled; | > > > | 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | */ @interface OFStream: OFObject < #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; } #ifdef OF_HAVE_PROPERTIES @property (getter=isWriteBufferEnabled) bool writeBufferEnabled; |
︙ | ︙ | |||
1037 1038 1039 1040 1041 1042 1043 | * @param arguments The arguments used in the format string * @return The number of bytes written */ - (size_t)writeFormat: (OFConstantString*)format arguments: (va_list)arguments; /*! | | | | | 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 | * @param arguments The arguments used in the format string * @return The number of bytes written */ - (size_t)writeFormat: (OFConstantString*)format arguments: (va_list)arguments; /*! * @brief Returns whether data is present in the internal read buffer. * * @return Whether data is present in the internal read buffer */ - (bool)hasDataInReadBuffer; /*! * @brief Returns whether the stream is in blocking mode. * * @return Whether the stream is in blocking mode */ - (bool)isBlocking; |
︙ | ︙ |