Differences From Artifact [38cc11b62a]:
- File src/OFStream.h — part of check-in [5a3133f9d8] at 2016-05-16 11:14:20 on branch trunk — Minor documentation improvements (user: js, size: 39489) [annotate] [blame] [check-ins using]
To Artifact [c3708c076a]:
- File
src/OFStream.h
— part of check-in
[1de551cb5f]
at
2016-06-07 22:56:28
on branch trunk
— Add support for reusing OFStreams after close
Right now, this is only useful for OFTCPSocket, as this is the only
class so far not establishing the stream in the init method. However,
this adds the general infrastructure to allow reuse to all subclasses of
OFStream. (user: js, size: 39558) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 | * @param length The length of the buffer to unread */ - (void)unreadFromBuffer: (const void*)buffer length: (size_t)length; /*! * @brief Closes the stream. */ - (void)close; /*! * @brief Performs a lowlevel read. * * @warning Do not call this directly! | > > | 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 | * @param length The length of the buffer to unread */ - (void)unreadFromBuffer: (const void*)buffer length: (size_t)length; /*! * @brief Closes the stream. * * @note If you override this, make sure to call `[super close]`! */ - (void)close; /*! * @brief Performs a lowlevel read. * * @warning Do not call this directly! |
︙ | ︙ |