219 out <<
"Unformatted) ";
223 out <<
"Unformatted) ";
228 out <<
"HitArray ) ";
240 switch (getPacketEndianism (
packet) )
244 out <<
" (Little Endian) " << std::endl;
248 out <<
" (Big Endian) " << std::endl;
252 out <<
" (Unknown) " << std::endl;
273 out <<
"Unformatted) ";
277 out <<
"Unformatted) ";
282 out <<
"HitArray ) ";
427 const int nlen,
int *nwout,
440 const int nlen,
int *nwout,
449 if (strcmp(what,
"") == 0)
465 else if (strcmp(what,
"RAW") == 0)
471 else if (strcmp(what,
"DATA") == 0)
504 memcpy(iarr, from, 4*howmuch);
534 const int nlen,
int *nwout,
554 for (
int i=0; i<
data1_length; i++) *rarr++ =
float (*from++);
631 COUT <<
"--- Error block:" << std::endl;
634 out <<
SETW(5) << j <<
" | ";
637 out << std::hex <<
SETW(8) << data[j++] <<
" " ;
641 out << std::dec<< std::endl;
643 out << std::dec << std::endl;
665 COUT <<
"--- Debug block:" << std::endl;
668 out <<
SETW(5) << j <<
" | ";
671 out << std::hex <<
SETW(8) << data[j++] <<
" " ;
675 out << std::dec<< std::endl;
677 out << std::dec<< std::endl;
689 unsigned int *i = (
unsigned int *) x;
690 unsigned int r = i[0];
698 unsigned int *i = (
unsigned int *) x;
699 unsigned int r = i[0];
707 unsigned int *i = (
unsigned int *) str;
725 int checksum_recalc = 0x0;
728 checksum_recalc ^= *d++;
734 if (checksum_recalc != *d)
return -1;