ITS
apiData.cpp File Reference
#include <apiData.h>
Include dependency graph for apiData.cpp:

Go to the source code of this file.

Functions

quint64 extractUInt (char *data, int l, int *offset)
 extractUInt Extract an unsigned integer from byte array. More...
 
qint64 extractInt (char *data, int l, int *offset)
 extractInt Extract an signed integer from byte array. More...
 
void passBytes (int *offset, int l)
 passBytes Increase the offset. More...
 

Function Documentation

◆ extractInt()

qint64 extractInt ( char *  data,
int  l,
int *  offset 
)

extractInt Extract an signed integer from byte array.

Parameters
dataThe byte array.
lLength in bytes of the number.
offsetOffset of the byte array.
Returns
The extracted signed integer.

Definition at line 22 of file apiData.cpp.

Referenced by AltitudeData::AltitudeData(), DestinationAreaData::DestinationAreaData(), gnDataRequestFromBin(), LongPositionVector::LongPositionVector(), and ReferencePositionData::ReferencePositionData().

Here is the caller graph for this function:

◆ extractUInt()

quint64 extractUInt ( char *  data,
int  l,
int *  offset 
)

extractUInt Extract an unsigned integer from byte array.

Parameters
dataThe byte array.
lLength in bytes of the number.
offsetOffset of the byte array.
Returns
The extracted unsigned integer.

Definition at line 3 of file apiData.cpp.

Referenced by ActionIDData::ActionIDData(), AltitudeData::AltitudeData(), AppDenmResultData::AppDenmResultData(), AppDenmTerminationData::AppDenmTerminationData(), AppDenmTriggerData::AppDenmTriggerData(), AppDenmUpdateData::AppDenmUpdateData(), DestinationAreaData::DestinationAreaData(), gnDataRequestFromBin(), LongPositionVector::LongPositionVector(), PosConfidenceEllipseData::PosConfidenceEllipseData(), UpperTester::utDenmTrigger(), and UpperTester::utDenmUpdate().

Here is the caller graph for this function:

◆ passBytes()

void passBytes ( int *  offset,
int  l 
)

passBytes Increase the offset.

Parameters
offsetThe offset to increase.
lThe number to add to the offset.

Definition at line 41 of file apiData.cpp.

Referenced by AppDenmTerminationData::AppDenmTerminationData(), AppDenmTriggerData::AppDenmTriggerData(), and AppDenmUpdateData::AppDenmUpdateData().

Here is the caller graph for this function: