174 if ( newid & 0xffff0000)
return -1;
229 out <<
"Unformatted) ";
233 out <<
"Unformatted) ";
238 out <<
"HitArray ) ";
250 switch (getPacketEndianism (
packet) )
254 out <<
" (Little Endian) " << std::endl;
258 out <<
" (Big Endian) " << std::endl;
262 out <<
" (Unknown) " << std::endl;
283 out <<
"Unformatted) ";
287 out <<
"Unformatted) ";
292 out <<
"HitArray ) ";
437 const int nlen,
int *nwout,
450 const int nlen,
int *nwout,
459 if (strcmp(what,
"") == 0)
475 else if (strcmp(what,
"RAW") == 0)
481 else if (strcmp(what,
"DATA") == 0)
514 memcpy(iarr, from, 4*howmuch);
544 const int nlen,
int *nwout,
641 COUT <<
"--- Error block:" << std::endl;
644 out <<
SETW(5) << j <<
" | ";
647 out << std::hex <<
SETW(8) << data[j++] <<
" " ;
651 out << std::dec<< std::endl;
653 out << std::dec << std::endl;
675 COUT <<
"--- Debug block:" << std::endl;
678 out <<
SETW(5) << j <<
" | ";
681 out << std::hex <<
SETW(8) << data[j++] <<
" " ;
685 out << std::dec<< std::endl;
687 out << std::dec<< std::endl;
699 unsigned int *
i = (
unsigned int *) x;
700 unsigned int r = i[0];
708 unsigned int *
i = (
unsigned int *) x;
709 unsigned int r = i[0];
717 unsigned int *
i = (
unsigned int *) str;
735 int checksum_recalc = 0x0;
738 checksum_recalc ^= *d++;
744 if (checksum_recalc != *d)
return -1;