Differences From Artifact [32d36c992f]:
- File
src/OFFile.h
— part of check-in
[440e95fd4a]
at
2012-09-12 17:27:53
on branch trunk
— Split -[OFStream fileDescriptor].
It is now -[fileDescriptorForReading] and -[fileDescriptorForWriting].
The split was necessary as some stream types (e.g. OFProcess) don't have
a single file descriptor, but two. This allows to use those stream types
with OFStreamObserver as well. (user: js, size: 6288) [annotate] [blame] [check-ins using]
To Artifact [9ede7ee4ac]:
- File src/OFFile.h — part of check-in [fb515e8e24] at 2012-10-09 15:07:30 on branch trunk — Make use of instancetype. (user: js, size: 6316) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
49 50 51 52 53 54 55 | /** * \brief Creates a new OFFile with the specified path and mode. * * \param path The path to the file to open as a string * \param mode The mode in which the file should be opened as a string * \return A new autoreleased OFFile */ | | | | | 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | /** * \brief Creates a new OFFile with the specified path and mode. * * \param path The path to the file to open as a string * \param mode The mode in which the file should be opened as a string * \return A new autoreleased OFFile */ + (instancetype)fileWithPath: (OFString*)path mode: (OFString*)mode; /** * \brief Creates a new OFFile with the specified file descriptor. * * \param fileDescriptor A file descriptor, returned from for example open(). * It is not closed when the OFFile object is deallocated! * \return A new autoreleased OFFile */ + (instancetype)fileWithFileDescriptor: (int)fileDescriptor; /** * \brief Returns the path fo the current working directory. * * \return The path of the current working directory */ + (OFString*)currentDirectoryPath; |
︙ | ︙ |