mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
EVBUFFER_PTR_SET -> EVBUFFER_PTR_ADD
Looks like EVBUFFER_PTR_ADD should have been used instead of EVBUFFER_PTR_SET.
This commit is contained in:
parent
0b49ae3459
commit
8674e4fb0a
@ -782,7 +782,7 @@ enum evbuffer_ptr_how {
|
||||
There are two ways to use this function: you can call
|
||||
evbuffer_ptr_set(buf, &pos, N, EVBUFFER_PTR_SET)
|
||||
to move 'pos' to a position 'N' bytes after the start of the buffer, or
|
||||
evbuffer_ptr_set(buf, &pos, N, EVBUFFER_PTR_SET)
|
||||
evbuffer_ptr_set(buf, &pos, N, EVBUFFER_PTR_ADD)
|
||||
to move 'pos' forward by 'N' bytes.
|
||||
|
||||
If evbuffer_ptr is not initialized, this function can only be called
|
||||
|
Loading…
x
Reference in New Issue
Block a user