I am currently trying to decipher someone else's code, and I've encountered something like this:
byte* d = new byte[n]; // Value of 'n' is determined at runtime.
byte* w1 = d + offset; // Value of 'offset' is constant and even.
...
for(int i = 0; i < imageCount; ++i){
w1 += d - w1 & 7; // At this point, 'd' didnt change, and w1 > d.
...
}
I don't understand what the instruction in the loop does, and it's use.
The pointer 'w1' is used to write data to 'd' with an offset.
He then uses 'd' to write on the disk.