Hello, I can't wrap my head around why its possible I'm getting different lengths of output.
I get output that differs in length like this for example:Code:while ( (file >> byte) && (bytesRead < dataBlockSize) ) { ss << hex << setfill('0') << setw(2) << byte; bytesRead++; } // bytesRead is always 16 unless its the last part of the file. #ifdef DEBUG cout << "||||" << bytesRead << "||||" << endl; #endif cout << ss.str() << endl;
The only time this should be possible is if bytesRead is also a different number. Except bytesRead is always the same number.Code:|||| 16 |||| dddddddddddddddddddd |||| 16 |||| ddddddddddddddddddddddddd |||| 16 |||| dddddddddddddddddd |||| 16 |||| ddddddddddddddddddddd |||| 16 |||| ddddddddddddddddddddd |||| 16 |||| ddddddddddddddddddddd



LinkBack URL
About LinkBacks


