netmsgs  1.2.2
RoadNarrows Robotics Network Messaging Package

Unpack an signed 64-bit integer from the message buffer. More...

Unpack an signed 64-bit integer from the message buffer.

Synopsis:
#include "rnr/netmsgs.h"

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

Description:
If the machine architecture only supports 32-bit long longs, then the 4 MSBs are truncated.

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.