There is definition in function header:
Then inside while loop there is:
Code:
a += ( k[0] + ( (unsigned)k[1] << 8 )) .........
k += 12;
If k is increased, then what mean k[%d] in every iteration? Isn't it first byte from data, but first byte from every 12 bytes
package, I think?
In Delphi should be:
Code:
v := 0;
k[v + 1], +2, etc
inc(v, 12);
?
And what mean typecasting to unsigned, when char in C++ is just byte?