16 #import "OFSeekableStream.h"
17 #import "OFKernelEventObserver.h"
20 # define OF_FILE_HANDLE_IS_FD
21 # define OF_INVALID_FILE_HANDLE (-1)
22 typedef int of_file_handle_t;
24 # define OF_INVALID_FILE_HANDLE NULL
25 typedef struct of_file_handle *of_file_handle_t;
28 OF_ASSUME_NONNULL_BEGIN
37 OF_SUBCLASSING_RESTRICTED
39 #ifdef OF_FILE_HANDLE_IS_FD
43 of_file_handle_t _handle;
86 + (instancetype)fileWithURL: (
OFURL *)URL mode: (
OFString *)mode;
96 + (instancetype)fileWithHandle: (of_file_handle_t)handle;
98 - (instancetype)init OF_UNAVAILABLE;
146 - (instancetype)initWithURL: (
OFURL *)URL mode: (
OFString *)mode;
156 - (instancetype)initWithHandle: (of_file_handle_t)handle
157 OF_DESIGNATED_INITIALIZER;
160 OF_ASSUME_NONNULL_END
A class which provides methods to read and write files.
Definition: OFFile.h:39
A stream that supports seeking.
Definition: OFSeekableStream.h:57
A class for handling strings.
Definition: OFString.h:132
A class for parsing URLs and accessing parts of it.
Definition: OFURL.h:34
This protocol is implemented by classes which can be observed for readiness for reading by OFKernelEv...
Definition: OFKernelEventObserver.h:85
This protocol is implemented by classes which can be observed for readiness for writing by OFKernelEv...
Definition: OFKernelEventObserver.h:100