Differences From Artifact [44934e3ad8]:
- File
src/OFFile.m
— 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: 3196) [annotate] [blame] [check-ins using]
To Artifact [249d4d336a]:
- File src/OFFile.m — part of check-in [657fae20a4] at 2008-12-07 10:35:12 on branch trunk — Add - close to OFStream. (user: js, size: 3291) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
160 161 162 163 164 165 166 167 | - (size_t)writeCString: (const char*)str { return [self writeNItems: strlen(str) ofSize: 1 fromBuffer: (const uint8_t*)str]; } @end | > > > > > > > > > > | 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | - (size_t)writeCString: (const char*)str { return [self writeNItems: strlen(str) ofSize: 1 fromBuffer: (const uint8_t*)str]; } - close { if (fclose(fp)) { /* FIXME: Throw exception */ return nil; } return self; } @end |