#include <nanomsg/nn.h> void *nn_reallocmsg(void *old, size_t size);
|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.3.2. See the documentation for v1.3.2 for the most up-to-date information.|
nn_reallocmsg - reallocate message (compatible API)
nn_reallocmsg() reallocates the message old, making it of size size.
|This function is provided for API compatibility with legacy libnanomsg. Consider using the relevant modern API instead.|
On success, the contents of old are copied into the new message (truncating if appropriate), then old is deallocated, and a pointer to the new message payload is returned.
On failure, the old message is unchanged, and the value
NULL is returned
to the caller.
This function returns a pointer to message buffer space, or
Insufficient memory is available.
An invalid size was specified.
The library is shutting down.