MCPcopy Create free account
hub / github.com/QAmigo/QAmigo / decodeFrame

Method decodeFrame

src/AdvancedTab/decoder.cpp:67–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void Decoder::decodeFrame(int id, QByteArray frameRawData)
68{
69 Protocal *protocal = listProtocals.at(id);
70 QList<VarType *> *listData = protocal->getListData();
71 //Prepare data to send to plugins.
72 QList<double> listValues;
73 int count = 0;
74 for (int i = 0; i < listData->count(); i++) {
75 VarType *type = listData->at(i);
76 type->setBufferValue(frameRawData.mid(count, type->getSize()));
77 count += type->getSize();
78 double value = type->getDouble(endianess);
79 listValues.append(value);
80 }
81 emit frameReady(id, listValues);
82}

Callers

nothing calls this directly

Calls 5

getListDataMethod · 0.80
setBufferValueMethod · 0.80
getSizeMethod · 0.80
getDoubleMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected