121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
* The buffer MUST be at least size * nitems big!
* \param nitems nitem The number of items to read
* The buffer MUST be at least size * nitems big!
* \return The number of bytes read
*/
- (size_t)readNItems: (size_t)nitems
ofSize: (size_t)size
intoBuffer: (uint8_t*)buf;
/**
* Writes from a buffer into the file.
*
* \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
fromBuffer: (const uint8_t*)buf;
@end
|
|
|
|
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
* The buffer MUST be at least size * nitems big!
* \param nitems nitem The number of items to read
* The buffer MUST be at least size * nitems big!
* \return The number of bytes read
*/
- (size_t)readNItems: (size_t)nitems
ofSize: (size_t)size
intoBuffer: (char*)buf;
/**
* Writes from a buffer into the file.
*
* \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
fromBuffer: (const char*)buf;
@end
|