17 #import "OFKernelEventObserver.h"
20 # define OF_FILE_HANDLE_IS_FD
21 typedef int OFFileHandle;
22 static const OFFileHandle OFInvalidFileHandle = -1;
24 typedef struct _OFFileHandle *OFFileHandle;
25 static const OFFileHandle OFInvalidFileHandle = NULL;
28 OF_ASSUME_NONNULL_BEGIN
35 OF_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;
115 OF_ASSUME_NONNULL_END
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