netmsgs  1.2.2
RoadNarrows Robotics Network Messaging Package

Pack an signed long integer into the message buffer. More...

Pack an signed long integer into the message buffer.

Synopsis:
#include "rnr/netmsgs.h"

extern int nmPackLong(long val, byte_t buf[], size_t bufSize, NMEndian_T eEndian);

Description:
Alias for nmPackS32() or nmPackS64() depending on sizeof(long).

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.