WSLAY_EVENT_GET_QUEUED_MSG_LENGTH(3)

πŸ’– WSLAY_EVENT_GET_QUEUED_MSG_LENGTH πŸ’–

okay bestie, so this one lives in the wslay manual, section 3 (that's the library-functions girlies, iykyk) β€” and it's literally just one tiny little function whose whole personality is counting. let's get into it πŸŽ€


✨ NAME ✨

wslay_event_get_queued_msg_length β€” get the sum of queued message length

✨ SYNOPSIS ✨

#include <wslay/wslay.h>

size_t wslay_event_get_queued_msg_length(wslay_event_context_ptr ctx)

✨ DESCRIPTION ✨

so wslay_event_get_queued_msg_length() returns the sum of queued message length. that's it, that's the whole job, she's an accountant πŸ’…

but listen β€” there's a lil catch, and it matters: it only counts the message length that got queued using wslay_event_queue_msg() or wslay_event_queue_close(). so if you queued stuff some other way? not her problem, not in the count. no cap. only those two functions make the number go up. 🌸

✨ AUTHOR ✨

Tatsuhiro Tsujikawa 🫢

2024, 2015, Tatsuhiro Tsujikawa


and that's the whole page, bestie!! 🌈 this cutie was written by Tatsuhiro Tsujikawa, the copyright is 2024, 2015, Tatsuhiro Tsujikawa, and the version tag on this bad boy is @PACKAGE_VERSION@, dated Apr 22. slay, go count some bytes πŸ’–βœ¨πŸ‘‘

πŸ“¦ where this page comes from