141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
|
target: (id)target
selector: (SEL)selector;
/*!
* @brief Asyncronously reads exactly the specified length bytes from the
* stream into a buffer.
*
* Unlike @ref asyncReadIntoBuffer:length:block, this method does not call the
* method when less than the specified length has been read - instead, it waits
* until it got exactly the specified length, the stream has ended or an
* exception occurred.
*
* @param buffer The buffer into which the data is read
* @param length The length of the data that should be read.
* The buffer <i>must</i> be <i>exactly</i> this big!
* @param target The target on which the selector should be called when the
* data has been received. If the method returns YES, it will be
* called again with the same buffer and exact length when more
|
|
|
|
|
|
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
|
target: (id)target
selector: (SEL)selector;
/*!
* @brief Asyncronously reads exactly the specified length bytes from the
* stream into a buffer.
*
* Unlike @ref asyncReadIntoBuffer:length:target:selector:, this method does
* not call the method when less than the specified length has been read -
* instead, it waits until it got exactly the specified length, the stream has
* ended or an exception occurred.
*
* @param buffer The buffer into which the data is read
* @param length The length of the data that should be read.
* The buffer <i>must</i> be <i>exactly</i> this big!
* @param target The target on which the selector should be called when the
* data has been received. If the method returns YES, it will be
* called again with the same buffer and exact length when more
|
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
|
length: (size_t)length
block: (of_stream_async_read_block_t)block;
/*!
* @brief Asyncronously reads exactly the specified length bytes from the
* stream into a buffer.
*
* Unlike @ref asyncReadIntoBuffer:length:block, this method does not invoke the
* block when less than the specified length has been read - instead, it waits
* until it got exactly the specified length, the stream has ended or an
* exception occurred.
*
* @param buffer The buffer into which the data is read
* @param length The length of the data that should be read.
* The buffer <i>must</i> be <i>exactly</i> this big!
* @param block The block to call when the data has been received.
* If the block returns YES, it will be called again with the same
|
|
|
|
|
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
|
length: (size_t)length
block: (of_stream_async_read_block_t)block;
/*!
* @brief Asyncronously reads exactly the specified length bytes from the
* stream into a buffer.
*
* Unlike @ref asyncReadIntoBuffer:length:block:, this method does not invoke
* the block when less than the specified length has been read - instead, it
* waits until it got exactly the specified length, the stream has ended or an
* exception occurred.
*
* @param buffer The buffer into which the data is read
* @param length The length of the data that should be read.
* The buffer <i>must</i> be <i>exactly</i> this big!
* @param block The block to call when the data has been received.
* If the block returns YES, it will be called again with the same
|
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
|
* @return The line that was read, autoreleased, or nil if the end of the
* stream has been reached.
*/
- (OFString*)tryReadTillDelimiter: (OFString*)delimiter;
/*!
* @brief Tries to read until the specified string or \\0 is found or the end
* of stream occurs (see @ref readTillDelimiterWithEncoding:) and
* returns nil if not enough data has been received yet.
*
* @param delimiter The delimiter
* @param encoding The encoding used by the stream
* @return The line that was read, autoreleased, or nil if the end of the
* stream has been reached.
*/
|
|
|
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
|
* @return The line that was read, autoreleased, or nil if the end of the
* stream has been reached.
*/
- (OFString*)tryReadTillDelimiter: (OFString*)delimiter;
/*!
* @brief Tries to read until the specified string or \\0 is found or the end
* of stream occurs (see @ref readTillDelimiter:encoding:) and
* returns nil if not enough data has been received yet.
*
* @param delimiter The delimiter
* @param encoding The encoding used by the stream
* @return The line that was read, autoreleased, or nil if the end of the
* stream has been reached.
*/
|