ObjFW  Diff

Differences From Artifact [16a1b1d069]:

To Artifact [10f43f7343]:


82
83
84
85
86
87
88



89
90
91
92
93
94
95
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
1044

1045
1046

1047
1048

1049
1050
1051
1052
1053
1054
1055
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 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
 */
- (bool)isBlocking;