Differences From Artifact [f5d7e92017]:
- File
src/OFStream.h
— part of check-in
[a7d66e7ab2]
at
2016-05-05 19:54:55
on branch trunk
— OFStream: Cache small reads to reduce syscalls
In some situations, this is 50x faster. (user: js, size: 39462) [annotate] [blame] [check-ins using]
To 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]
︙ | ︙ | |||
1125 1126 1127 1128 1129 1130 1131 | - (void)close; /*! * @brief Performs a lowlevel read. * * @warning Do not call this directly! * | | > | > | | | 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 | - (void)close; /*! * @brief Performs a lowlevel read. * * @warning Do not call this directly! * * @note Override this method with your actual read implementation when * subclassing! * * @param buffer The buffer for the data to read * @param length The length of the buffer * @return The number of bytes read */ - (size_t)lowlevelReadIntoBuffer: (void*)buffer length: (size_t)length; /*! * @brief Performs a lowlevel write. * * @warning Do not call this directly! * * @note Override this method with your actual write implementation when * subclassing! * * @param buffer The buffer with the data to write * @param length The length of the data to write */ - (void)lowlevelWriteBuffer: (const void*)buffer length: (size_t)length; /*! * @brief Returns whether the lowlevel is at the end of the stream. * * @warning Do not call this directly! * * @note Override this method with your actual end of stream checking * implementation when subclassing! * * @return Whether the lowlevel is at the end of the stream */ - (bool)lowlevelIsAtEndOfStream; @end OF_ASSUME_NONNULL_END |