Overview
Comment: | Add writeCString and writeWideCString to OFStream. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
6ed7c3361181583aca89f80292c4b021 |
User & Date: | js on 2008-12-07 02:53:55 |
Other Links: | manifest | tags |
Context
2008-12-07
| ||
02:59 | glibc is broken once again. I guess no other libc is that broken... check-in: 6d069e2a83 user: js tags: trunk | |
02:53 | Add writeCString and writeWideCString to OFStream. check-in: 6ed7c33611 user: js tags: trunk | |
02:35 | Add inital OFSocket class. check-in: ba7219b1b6 user: js tags: trunk | |
Changes
Modified src/OFFile.h from [7e04efd7c9] to [38c6717cee].
︙ | |||
149 150 151 152 153 154 155 | 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 | - + - + + + + + + + + + + + + + + + + + | * \param buf The buffer from which the data is written to the file * \param size The size of the data that should be written * \param nitem The number of items to write * \return The number of bytes written */ - (size_t)writeNItems: (size_t)nitems ofSize: (size_t)size |
Modified src/OFFile.m from [ecb56994e1] to [5d576a9538].
︙ | |||
9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | + + | * the packaging of this file. */ #import "config.h" #import <stdio.h> #import <unistd.h> #import <string.h> #import <wchar.h> #import <sys/types.h> #import <sys/stat.h> #import "OFFile.h" #import "OFExceptions.h" |
︙ | |||
132 133 134 135 136 137 138 | 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | - + - + + + + + + + + + + + + + + + | { return [self readNItems: size ofSize: 1]; } - (size_t)writeNItems: (size_t)nitems ofSize: (size_t)size |
Modified src/OFObject.m from [c722de15cb] to [16b59ee246].
︙ | |||
79 80 81 82 83 84 85 | 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | - - - - + | return ptr; } - (void*)getMemForNItems: (size_t)nitems ofSize: (size_t)size { |
︙ |
Modified src/OFSocket.h from [4a5db4859f] to [896e2569bc].
︙ | |||
106 107 108 109 110 111 112 | 106 107 108 109 110 111 112 113 114 | - + | * Sends data from a buffer. * * \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 |
Modified src/OFSocket.m from [b2671e0dfd] to [ebbb94e27f].
︙ | |||
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | + + | */ #import "config.h" #import <stdlib.h> #import <string.h> #import <unistd.h> #import <wchar.h> #import "OFSocket.h" #import "OFExceptions.h" @implementation OFSocketAddress + newWithHost: (const char*)host andPort: (uint16_t)port andFamily: (int)family andType: (int)type andProtocol: (int)protocol |
︙ | |||
146 147 148 149 150 151 152 | 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 | - + + + + + + + + + + + + + + + + + + | @throw exception; } return ret; } - (size_t)writeNBytes: (size_t)size |
Modified src/OFStream.h from [6c96d5c694] to [6335fea124].
︙ | |||
30 31 32 33 34 35 36 | 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | - + - + - + + + + + + + + + + + + + + + + + | * \param size The size of the data that should be read * \return A new buffer with the data read. * It is part of the memory pool of the OFFile. */ - (uint8_t*)readNBytes: (size_t)size; /** |
Modified tests/OFSocket/OFSocket.m from [53eb38c1df] to [cdce310541].
︙ | |||
12 13 14 15 16 17 18 | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | - - - + - - + | #import "config.h" #import <string.h> #import "OFSocket.h" #import "OFExceptions.h" |