#include <nng/nng.h>
size_t nng_msg_capacity(nng_msg *msg);
--- version: tip layout: manpage_v2 title: nng_msg_capacity(3) ---
nng_msg_capacity - return message body length
#include <nng/nng.h>
size_t nng_msg_capacity(nng_msg *msg);
The nng_msg_capacity() returns the storage allocated for the body of message msg.
The capacity includes the current contents of the message and free space after it.
The message body may grow to capacity without performing any further allocations.
Allocated capacity for message body.
None.