unsigned int has_extra_data: 1;
unsigned int has_z_data: 1;
unsigned int has_damaged_data: 1;
3*4 byte?
here i have a problem:
36 byte from above plus 12 byte here = 48 byte
but the height (the next value in the header) is at the 41th byte (i've tested this)
i have 8 bytes too much
so i read one byte for each value and one additional unknown byte
but this can't be right... i get more than 2 different values for has_extra_data, although it should be a boolean
and has_z_data and has_damaged_data has the same values for all temperat files
i'm not that experienced in c++
what is the ": 1" after "unsigned int has_extra_data"?
is it one "unsigned int" (4byte) for all 3 values? and the "1" means that i only read the next one bit of this int? but why using 4 byte for 3 bit information? and how do i have to read the bits in this int? from left to right or from right to left?
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum