17 #import "OFSeekableStream.h" 20 # define OF_FILE_HANDLE_IS_FD 21 # define OF_INVALID_FILE_HANDLE (-1) 22 typedef int of_file_handle_t;
24 # define BOOL EXEC_BOOL 25 # include <proto/dos.h> 27 # define OF_INVALID_FILE_HANDLE NULL 28 typedef struct of_file_handle *of_file_handle_t;
31 OF_ASSUME_NONNULL_BEGIN
40 of_file_handle_t _handle;
62 + (instancetype)fileWithPath: (
OFString *)path
73 + (instancetype)fileWithHandle: (of_file_handle_t)handle;
75 -
init OF_UNAVAILABLE;
110 - initWithHandle: (of_file_handle_t)handle OF_DESIGNATED_INITIALIZER;
113 OF_ASSUME_NONNULL_END
A class which provides methods to read and write files.
Definition: OFFile.h:38
A class for handling strings.
Definition: OFString.h:114
id init()
Initializes an already allocated object.
Definition: OFObject.m:488
A stream that supports seeking.
Definition: OFSeekableStream.h:57