Quote:
Originally Posted by urip
Code:
NSData *data = [NSData dataWithContentsOfFile:path];
Byte *byteData = (Byte*)malloc([data length]);
memcpy(byteData, [data bytes], i);
|
What is the variable 'i' set to in the memcpy call? Does stepping through the code in the debugger glean any useful information?