#include <nng/nng.h>
size_t nng_msg_capacity(nng_msg *msg);
This documentation is for the TIP (development tree) of NNG and may represent unreleased changes or functionality that is experimental, and is subject to change before release. The latest released version is v1.8.0. See the documentation for v1.8.0 for the most up-to-date information. |
nng_msg_capacity(3)
NAME
nng_msg_capacity - return message body length
SYNOPSIS
DESCRIPTION
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.
RETURN VALUES
Allocated capacity for message body.
ERRORS
None.