Hi. With these variables:
NSInteger dataStart;
uint64_t dataSize[1];
const unsigned char *beginning;
NSInteger bytesEnd;
...at these values:
dataStart = 499
dataSize[0] = 427
beginning = 9060864
bytesEnd = 9061793
...the following code:
NSLog(@"dataStart = %d, dataSize[0] = %d, beginning = %d, bytesEnd = %d",
dataStart, dataSize[0], (NSInteger)beginning, bytesEnd);
...sends this to the console:
dataStart = 499, dataSize[0] = 427, beginning = 0, bytesEnd = 9060864
In other words, an extra zero has been inserted after the array, bumping the other variables along. It does this consistently. I'm using xcode 3.2.3. What is happening here?
[Edit for emphasis: It's not just the old favorite of printing a zero where a value should be because a cast is wrong. It's inserting an extra zero, then printing the correct value of beginning where it should print bytesEnd, and not printing bytesEnd.]
Thanks,