netmsgs  1.2.2
RoadNarrows Robotics Network Messaging Package

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

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

Synopsis:
#include "rnr/netmsgs.h"

extern int nmPackS64(long long 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 signed extended.

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.