MCPcopy Create free account
hub / github.com/ON4QZ/QSSTV / arrayDump

Function arrayDump

src/utils/arraydumper.cpp:8–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6
7
8void arrayDump(QString label,short int *data, unsigned int len,bool toAux,bool singleColumn)
9{
10 unsigned int i,j;
11 QString dumpStr,tmp;
12 if(!singleColumn)
13 {
14 for( i=0;i<len;i+=16)
15 {
16 dumpStr=label+" ";
17 for(j=0;(j<16)&&((i+j)<len);j++)
18 {
19 tmp=QString::number(data[i+j]);
20// while(tmp.length()<4) tmp.prepend("0");
21 dumpStr+=tmp+" ";
22 }
23 dumpStr.chop(1);
24 if(toAux)
25 {
26 logFilePtr->addToAux(dumpStr);
27 }
28 else
29 {
30 addToLog(dumpStr,LOGALL);
31 }
32 }
33 }
34 else
35 {
36 dumpStr=label+" ";
37 if(toAux) logFilePtr->addToAux(dumpStr);
38 else addToLog(dumpStr,LOGALL);
39 for(i=0;i<len;i++)
40 {
41 tmp=QString::number(data[i]);
42 if(toAux) logFilePtr->addToAux(tmp);
43 else addToLog(tmp,LOGALL);
44 }
45 }
46}
47
48void arrayDump(QString label,int *data, unsigned int len,bool toAux)
49{

Callers

nothing calls this directly

Calls 2

chopMethod · 0.80
addToAuxMethod · 0.80

Tested by

no test coverage detected