21 #import "OFKernelEventObserver.h" 24 # define OF_FILE_HANDLE_IS_FD 25 typedef int OFFileHandle;
26 static const OFFileHandle OFInvalidFileHandle = -1;
28 typedef struct _OFFileHandle *OFFileHandle;
29 static const OFFileHandle OFInvalidFileHandle = NULL;
32 OF_ASSUME_NONNULL_BEGIN
39 OF_SUBCLASSING_RESTRICTED
41 #ifdef OF_FILE_HANDLE_IS_FD 46 bool _initialized, _atEndOfStream;
79 + (instancetype)fileWithHandle: (OFFileHandle)handle;
114 - (instancetype)initWithHandle: (OFFileHandle)handle OF_DESIGNATED_INITIALIZER;
116 - (instancetype)init OF_UNAVAILABLE;
119 OF_ASSUME_NONNULL_END
This protocol is implemented by classes which can be observed for readiness for reading by OFKernelEv...
A class for handling strings.
Definition: OFString.h:142
A class which provides methods to read and write files.
Definition: OFFile.h:40
This protocol is implemented by classes which can be observed for readiness for writing by OFKernelEv...
A stream that supports seeking.
Definition: OFSeekableStream.h:74