On 14/07/2009, at 3:02 PM, Chase Meadors wrote:
for (int i = 0; i < aNumber; i ++) {
NSLog(@"%02X", buf[i]);
}
This is what's really bothering me because I'll get normal bytes,
like 2E 00 AA, but sometimes, seemingly randomly, there are six
leading F's. Something like:
0E
00
On 13 Jul 2009, at 22:02, Chase Meadors wrote:
Hi, I'm having some confusion here over displaying raw binary data.
I have my NSMutableData object that I'm getting the bytes from. As I
understand it, there are different ways to get the bytes.
The -getBytes:range: method
NSRange r = NSMakeRan
Hi, I'm having some confusion here over displaying raw binary data.
I have my NSMutableData object that I'm getting the bytes from. As I
understand it, there are different ways to get the bytes.
The -getBytes:range: method
NSRange r = NSMakeRange(x, y);
char buf[y];
[data getBytes:&buf lengt