netmsgs  1.2.2
RoadNarrows Robotics Network Messaging Package

Unpack a 32-bit pointer from the message buffer. More...

Unpack a 32-bit pointer from the message buffer.

Synopsis:
#include "rnr/netmsgs.h"

extern int nmUnpackP32(byte_t buf[], size_t bufSize, void *pVal, NMEndian_T eEndian);

Description:
If the machine architecture has 64-bit pointers, then only the LSB 4 bytes are packed.

Note
Pointer is always unpacked in native byte order.
Parameters
[in]bufInput message buffer.
bufSizeSize of input buffer.
[out]pValPointer to value to unpack (set).
eEndianUnpacking order. See NMEndian_T.
Returns
On success, returns the number of bytes unpacked. On error, the appropriate negated netmsgs error code ( < 0) is returned.