I have a string of bytes: "0x00" and I need to convert it to a readable string which I believe should be "00". How do I do this? I've tried this:
NSUInteger length = [@"0x00" length];
NSData *sizeData = [NSData dataWithBytes: &length length: sizeof(length)];
But that isn't creating data with the actual bytes just the length. Anything I do with bytes crashes my test.
NSUInteger length = [@"0x00" length];
NSData *sizeData = [NSData dataWithBytes: &length length: sizeof(length)];
But that isn't creating data with the actual bytes just the length. Anything I do with bytes crashes my test.