mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-12 22:10:12 -04:00
Document a change in the semantics of event_get_struct_event_size()
This commit is contained in:
parent
8a44062308
commit
e21f5d15eb
@ -605,9 +605,13 @@ void event_get_assignment(const struct event *event, struct event_base **base_ou
|
|||||||
Return the size of struct event that the Libevent library was compiled
|
Return the size of struct event that the Libevent library was compiled
|
||||||
with.
|
with.
|
||||||
|
|
||||||
This will be the same as sizeof(struct event) if you're running with the
|
This will be NO GREATER than sizeof(struct event) if you're running with
|
||||||
same version of Libevent that your application was built with, but
|
the same version of Libevent that your application was built with, but
|
||||||
otherwise might not.
|
otherwise might not.
|
||||||
|
|
||||||
|
Note that it might be SMALLER than sizeof(struct event) if some future
|
||||||
|
version of Libevent adds extra buffer space to the end of struct event
|
||||||
|
to ensure
|
||||||
*/
|
*/
|
||||||
size_t event_get_struct_event_size(void);
|
size_t event_get_struct_event_size(void);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user