55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
*
* \param buffer The buffer into which the data is read
* \param length The length of the data that should be read at most.
* The buffer MUST be at least this big!
* \return The number of bytes read
*/
- (size_t)readNBytes: (size_t)size
intoBuffer: (char*)buffer;
/**
* Reads exactly length bytes from the stream into a buffer. Unlike
* readNBytes:intoBuffer:, this method does not return when less than the
* specified length has been read - instead, it waits until it got exactly length
* bytes.
*
* WARNING: Only call this when you know that specified amount of data is
* available! Otherwise you will get an exception!
*
* \param buffer The buffer into which the data is read
* \param length The length of the data that should be read.
* The buffer MUST be EXACTLY this big!
*/
- (void)readExactlyNBytes: (size_t)length
intoBuffer: (char*)buffer;
/**
* Reads a uint8_t from the stream.
*
* WARNING: Only call this when you know that enough data is available!
* Otherwise you will get an exception!
*
|
|
|
|
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
*
* \param buffer The buffer into which the data is read
* \param length The length of the data that should be read at most.
* The buffer MUST be at least this big!
* \return The number of bytes read
*/
- (size_t)readNBytes: (size_t)size
intoBuffer: (void*)buffer;
/**
* Reads exactly length bytes from the stream into a buffer. Unlike
* readNBytes:intoBuffer:, this method does not return when less than the
* specified length has been read - instead, it waits until it got exactly length
* bytes.
*
* WARNING: Only call this when you know that specified amount of data is
* available! Otherwise you will get an exception!
*
* \param buffer The buffer into which the data is read
* \param length The length of the data that should be read.
* The buffer MUST be EXACTLY this big!
*/
- (void)readExactlyNBytes: (size_t)length
intoBuffer: (void*)buffer;
/**
* Reads a uint8_t from the stream.
*
* WARNING: Only call this when you know that enough data is available!
* Otherwise you will get an exception!
*
|
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
|
* Writes from a buffer into the stream.
*
* \param buffer The buffer from which the data is written to the stream
* \param length The length of the data that should be written
* \return The number of bytes written
*/
- (size_t)writeNBytes: (size_t)length
fromBuffer: (const char*)buffer;
/**
* Writes a uint8_t into the stream.
*
* \param int8 A uint8_t
*/
- (void)writeInt8: (uint8_t)int8;
|
|
|
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
|
* Writes from a buffer into the stream.
*
* \param buffer The buffer from which the data is written to the stream
* \param length The length of the data that should be written
* \return The number of bytes written
*/
- (size_t)writeNBytes: (size_t)length
fromBuffer: (const void*)buffer;
/**
* Writes a uint8_t into the stream.
*
* \param int8 A uint8_t
*/
- (void)writeInt8: (uint8_t)int8;
|