Differences From Artifact [a9317063cc]:
- File src/OFStream.h — part of check-in [88053589dc] at 2008-12-07 10:48:12 on branch trunk — Very small API change. (user: js, size: 1512) [annotate] [blame] [check-ins using]
To Artifact [7bc3490907]:
- File
src/OFStream.h
— part of check-in
[c83137e7cd]
at
2008-12-11 13:43:35
on branch trunk
— Remove - close from OFStream protocol.
The reason is that closing a file isn't too useful, because an OFFile
object can't be reused, whereas an OFTCPSocket can. So only the
OFTCPSocket should have closed. Plus, we don't need to handle the case
that someone tried to read from / write to a closed OFFile. (user: js, size: 1472) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
46 47 48 49 50 51 52 | /** * Writes a C string into the stream, without the trailing zero. * * \param str The C string from which the data is written to the stream * \return The number of bytes written */ - (size_t)writeCString: (const char*)str; | < < < < < | 46 47 48 49 50 51 52 53 | /** * Writes a C string into the stream, without the trailing zero. * * \param str The C string from which the data is written to the stream * \return The number of bytes written */ - (size_t)writeCString: (const char*)str; @end |