Differences From Artifact [6335fea124]:
- File src/OFStream.h — part of check-in [6ed7c33611] at 2008-12-07 02:53:55 on branch trunk — Add writeCString and writeWideCString to OFStream. (user: js, size: 1706) [annotate] [blame] [check-ins using]
To Artifact [1921fa4c55]:
- File
src/OFStream.h
— part of check-in
[70874cf3c5]
at
2008-12-07 03:06:33
on branch trunk
— Remove writeWideCString as that's a bad idea.
Endianess, size etc. may differ from system to system. While this might
be ok when writing files that are only read local again, this is
definitely not ok with sockets. So it's better to remove it from the
OFStream protocol. (user: js, size: 1464) [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 |