28 COUT <<
" wrong buffer" << std::endl;
34 COUT <<
"problem in buffer swap" << std::endl;
51 unsigned int evtindex, frameindex;
73 int written_length = (
bptr->
Length + 8191)/8192;
74 written_length *= 8192;
78 std::cout <<
"Error: next event exceeds buffer length " <<
bptr->
Length
79 <<
" current index " << evtindex
80 <<
"next event length " << evtptr->
evt_length << std::endl;
100 while (frameindex < evtptr->evt_length - EVTHEADERLENGTH)
103 frameptr = &evtptr->
data[frameindex];
123 COUT <<
"0-length event found at " << evtindex <<
" " <<
bptr->
Length << std::endl;
133 int swapped_length =
i4swap(*fp);
134 if ( swapped_length > eventlength || swapped_length <0 )
140 for ( i = 0; i < swapped_length; i++)
161 if (current_index < 0 || current_index >
max_length)
215 if (current_index < 0 || current_index >
max_length)