Differences From Artifact [896e2569bc]:
- File src/OFSocket.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: 2721) [annotate] [blame] [check-ins using]
To Artifact [e31807ae92]:
- File
src/OFSocket.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: 2917) [annotate] [blame] [check-ins using]
︙ | |||
107 108 109 110 111 112 113 114 | 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | + + + + + + + + | * * \param buf The buffer from which the data is written to the file * \param size The size of the data that should be written * \return The number of bytes written */ - (size_t)writeNBytes: (size_t)size fromBuffer: (const uint8_t*)buf; /** * Sends a C string, without the trailing zero. * * \param str The C string from which the data is sent * \return The number of bytes written */ - (size_t)writeCString: (const char*)str; @end |