netmsgs  1.2.2
RoadNarrows Robotics Network Messaging Package

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

Unpack a 64-bit pointer from the message buffer.

Synopsis:
#include "rnr/netmsgs.h"

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

Description:
If the machine architecture only supports 32-bit pointers, then the 4 MSBs are padded with 0's.

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.