netmsgs  1.2.2
RoadNarrows Robotics Network Messaging Package

Pack an unsigned 64-bit integer into the message buffer. More...

Pack an unsigned 64-bit integer into the message buffer.

Synopsis:
#include "rnr/netmsgs.h"

extern int nmPackU64(ulonglong_t val, byte_t buf[], size_t bufSize, NMEndian_T eEndian);

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

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.