ObjFW  Check-in [e1285e3ba9]

Overview
Comment:Emphasize that -[readNBytes:intoBuffer:] reads at most n bytes.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: e1285e3ba901efdfb7464d5db0be7b20a17834cd6159ad61d17ecfb473336cd2
User & Date: js on 2011-07-09 03:10:19
Other Links: manifest | tags
Context
2011-07-09
12:04
Optimize +[stringWithPath:]. check-in: 1c65e229e8 user: js tags: trunk
03:10
Emphasize that -[readNBytes:intoBuffer:] reads at most n bytes. check-in: e1285e3ba9 user: js tags: trunk
00:00
Check for more invalid UTF-8 byte sequences. check-in: 51dff30395 user: js tags: trunk
Changes

Modified src/OFStream.h from [4d0c3ac318] to [f806e93da6].

47
48
49
50
51
52
53
54




55
56
57
58
59
60
61
 * Returns a boolean whether the end of the stream has been reached.
 *
 * \return A boolean whether the end of the stream has been reached
 */
- (BOOL)isAtEndOfStream;

/**
 * Reads at most size bytes from the stream into a buffer.




 *
 * \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







|
>
>
>
>







47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
 * Returns a boolean whether the end of the stream has been reached.
 *
 * \return A boolean whether the end of the stream has been reached
 */
- (BOOL)isAtEndOfStream;

/**
 * \brief Reads <i>at most</i> size bytes from the stream into a buffer.
 *
 * On network streams, this might read less than the specified number of bytes.
 * If you want to read exactly the specified number of bytes, use
 * -[readExactlyNBytes:intoBuffer:].
 *
 * \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