diff options
author | yuangongji <82787816@qq.com> | 2019-09-21 23:37:38 +0800 |
---|---|---|
committer | yuangongji <82787816@qq.com> | 2019-09-22 22:57:47 +0800 |
commit | 5aae74d7a6134e3072f8d311d3ce16efd971baef (patch) | |
tree | 2b550048509495a08a795aa61a54041a19e93463 /include | |
parent | 6769f692d734a13cb8f20b42c7561cd3c0766f12 (diff) | |
download | libevent-5aae74d7a6134e3072f8d311d3ce16efd971baef.tar.gz |
improve the description of parameter to evbuffer_read()
Diffstat (limited to 'include')
-rw-r--r-- | include/event2/buffer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/event2/buffer.h b/include/event2/buffer.h index 1fb30eca..a9afc3c6 100644 --- a/include/event2/buffer.h +++ b/include/event2/buffer.h @@ -748,7 +748,8 @@ int evbuffer_write_atmost(struct evbuffer *buffer, evutil_socket_t fd, @param buffer the evbuffer to store the result @param fd the file descriptor to read from - @param howmuch the number of bytes to be read + @param howmuch the number of bytes to be read. If the given number is negative + or out of maximum bytes per one read, as many bytes as we can will be read. @return the number of bytes read, or -1 if an error occurred @see evbuffer_write() */ |