87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
-
+
-
+
|
OFCopying>
{
#if !defined(OF_SEEKABLE_STREAM_M) && !defined(OF_TCP_SOCKET_M)
@private
#endif
char *_readBuffer, *_writeBuffer;
size_t _readBufferLength, _writeBufferLength;
bool _writeBufferEnabled, _waitingForDelimiter;
bool _writeBuffered, _waitingForDelimiter;
@protected
bool _blocking;
}
#ifdef OF_HAVE_PROPERTIES
@property (getter=isWriteBufferEnabled) bool writeBufferEnabled;
@property (getter=isWriteBuffered) bool writeBuffered;
@property (getter=isBlocking) bool blocking;
@property (readonly, getter=isAtEndOfStream) bool atEndOfStream;
#endif
/*!
* @brief Returns a boolean whether the end of the stream has been reached.
*
|
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
|
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
|
-
+
-
+
|
encoding: (of_string_encoding_t)encoding;
/*!
* @brief Returns a boolen whether writes are buffered.
*
* @return A boolean whether writes are buffered
*/
- (bool)isWriteBufferEnabled;
- (bool)isWriteBuffered;
/*!
* @brief Enables or disables the write buffer.
*
* @param enable Whether the write buffer should be enabled or disabled
*/
- (void)setWriteBufferEnabled: (bool)enable;
- (void)setWriteBuffered: (bool)enable;
/*!
* @brief Writes everythig in the write buffer to the stream.
*/
- (void)flushWriteBuffer;
/*!
|