I am having difficulty getting an integer from a buffer in iOS.
To read a string, I am using:
output = [[NSString alloc] initWithBytes:buffer lenght:len encoding:NSASCIIStringEncoding];
But there doesn’t seem to be an equivalent initWithBytes for integers.
Thanks in advance,
Dave
That is because the buffer can be cast directly to the integer value.
Output:
0xBADF00D 0xBADF00D