netmsgs  1.2.2
RoadNarrows Robotics Network Messaging Package

Pack a 32-bit pointer into the message buffer. More...

Pack a 32-bit pointer into the message buffer.

Synopsis:
#include "rnr/netmsgs.h"

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

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

Note
Pointer is always packed in native byte order.
Parameters
[in]valValue to pack.
[out]bufOutput message buffer.
bufSizeSize of output buffer.
eEndianPacking order. See NMEndian_T.
Returns
On success, returns the number of bytes packed. On error, the appropriate negated netmsgs error code ( < 0) is returned.