29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{
@public
char *cache;
@protected
char *wBuffer;
size_t cacheLen, wBufferLen;
BOOL buffersWrites;
}
/**
* Returns a boolean whether the end of the stream has been reached.
*
* \return A boolean whether the end of the stream has been reached
*/
- (BOOL)isAtEndOfStream;
|
>
>
>
>
>
|
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{
@public
char *cache;
@protected
char *wBuffer;
size_t cacheLen, wBufferLen;
BOOL buffersWrites;
BOOL isBlocking;
}
#ifdef OF_HAVE_PROPERTIES
@property (assign, setter=setBlocking) BOOL isBlocking;
#endif
/**
* Returns a boolean whether the end of the stream has been reached.
*
* \return A boolean whether the end of the stream has been reached
*/
- (BOOL)isAtEndOfStream;
|
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
|
* \param fmt A string used as format
* \param args The arguments used in the format string
* \return The number of bytes written
*/
- (size_t)writeFormat: (OFString*)fmt
withArguments: (va_list)args;
/**
* \return The file descriptor for the stream.
*/
- (int)fileDescriptor;
/**
* Closes the stream.
*/
- (void)close;
@end
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
|
* \param fmt A string used as format
* \param args The arguments used in the format string
* \return The number of bytes written
*/
- (size_t)writeFormat: (OFString*)fmt
withArguments: (va_list)args;
/**
* \return Whether the stream is in blocking mode
*/
- (BOOL)isBlocking;
/**
* Enables or disables non-blocking I/O.
*
* By default, a stream is in blocking mode.
* On Win32, this currently only works for sockets!
*
* \param enable Whether the stream should be blocking
*/
- (void)setBlocking: (BOOL)enable;
/**
* \return The file descriptor for the stream.
*/
- (int)fileDescriptor;
/**
* Closes the stream.
*/
- (void)close;
@end
|