#include <stdarg.h>
#import "OFObject.h"
#import "OFString.h"
#import "OFKernelEventObserver.h"
Go to the source code of this file.
◆ of_stream_async_read_block_t
typedef bool(^ of_stream_async_read_block_t) (OFStream *stream, void *buffer, size_t length, OFException *_Nullable exception) |
A block which is called when data was read from the stream.
- Parameters
-
stream | The stream on which data was read |
buffer | A buffer with the data that has been read |
length | The length of the data that has been read |
exception | An exception which occurred while reading or nil on success |
- Returns
- A bool whether the same block should be used for the next read
◆ of_stream_async_read_line_block_t
A block which is called when a line was read from the stream.
- Parameters
-
stream | The stream on which a line was read |
line | The line which has been read or nil when the end of stream occurred |
exception | An exception which occurred while reading or nil on success |
- Returns
- A bool whether the same block should be used for the next read