The original value: 6630836Code:long x_size = buff2[3] << 24 | buff2[2] << 4 | buff2[1] >> 4 | buff2[0] >> 24;
The value stored in file: b4 2d 65 00
I read the number as
The result is ffffffff (-1)Code:char *buff2[5] = { 0 }; f.read(buff2, sizeof(char)*4);
Are there any compact ways I can convert the number into the right form?
I guess I am not doing it right for the moment....
Thanks
Jack




Reply With Quote