17#import "OFKernelEventObserver.h"
20# define OF_FILE_HANDLE_IS_FD
21typedef int OFFileHandle;
22static const OFFileHandle OFInvalidFileHandle = -1;
24typedef struct _OFFileHandle *OFFileHandle;
25static const OFFileHandle OFInvalidFileHandle = NULL;
28OF_ASSUME_NONNULL_BEGIN
35OF_SUBCLASSING_RESTRICTED
37#ifdef OF_FILE_HANDLE_IS_FD
42 bool _initialized, _atEndOfStream;
75+ (instancetype)fileWithHandle: (OFFileHandle)handle;
110- (instancetype)initWithHandle: (OFFileHandle)handle OF_DESIGNATED_INITIALIZER;
112- (instancetype)init OF_UNAVAILABLE;
A class which provides methods to read and write files.
Definition OFFile.h:37
A stream that supports seeking.
Definition OFSeekableStream.h:71
A class for handling strings.
Definition OFString.h:135
This protocol is implemented by classes which can be observed for readiness for reading by OFKernelEv...
Definition OFKernelEventObserver.h:84
This protocol is implemented by classes which can be observed for readiness for writing by OFKernelEv...
Definition OFKernelEventObserver.h:99