21#import "OFKernelEventObserver.h"
24# define OF_FILE_HANDLE_IS_FD
25typedef int OFFileHandle;
26static const OFFileHandle OFInvalidFileHandle = -1;
28typedef struct _OFFileHandle *OFFileHandle;
29static const OFFileHandle OFInvalidFileHandle = NULL;
32OF_ASSUME_NONNULL_BEGIN
39OF_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;
A class which provides methods to read and write files.
Definition OFFile.h:41
A stream that supports seeking.
Definition OFSeekableStream.h:75
A class for handling strings.
Definition OFString.h:143
This protocol is implemented by classes which can be observed for readiness for reading by OFKernelEv...
Definition OFKernelEventObserver.h:83
This protocol is implemented by classes which can be observed for readiness for writing by OFKernelEv...
Definition OFKernelEventObserver.h:97