netmsgs  1.2.2
RoadNarrows Robotics Network Messaging Package

Pack an ITV message, tracing message packing to stderr. More...

Pack an ITV message, tracing message packing to stderr.

Synopsis:
#include "rnr/netmsgs.h"

extern int nmPackITVMsgDebug(const NMMsgDef_T *pMsgDef, void *pStruct, byte_t buf[], size_t bufSize, NMEndian_T eEndian);

Description:

Parameters
pMsgDefPointer to message definition.
[in]pStructPointer to the associated, populated message structure.
[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.