MRPT  1.9.9
protocolhandler.cpp File Reference
#include "protocolhandler.h"
#include <xsens/xsmessage.h>
#include <xsens/xsresultvalue.h>
#include <iomanip>
Include dependency graph for protocolhandler.cpp:

Go to the source code of this file.

Functions

int expectedMessageSize (const unsigned char *buffer, int sz)
 Compute the expected message size given a possibly incomplete message. More...
 

Function Documentation

◆ expectedMessageSize()

int expectedMessageSize ( const unsigned char *  buffer,
int  sz 
)

Compute the expected message size given a possibly incomplete message.

When analyzing a message with incomplete size information, the function will return the minimum size of the message given the information that is available

Definition at line 37 of file protocolhandler.cpp.

References XS_EXTLENCODE, XS_LEN_MSGEXTHEADERCS, and XS_LEN_MSGHEADERCS.

Referenced by ProtocolHandler::findMessage().

Here is the caller graph for this function:



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019