Re: NSData problems and viewing buffer data in hex

2014-05-07 Thread Uli Kusterer
On 07 May 2014, at 18:21, William Squires wrote: > Quickie question: Does [NSData getBytes:range:] return .length bytes > into the buffer specified, even if some of the bytes may be '\0' (terminating > null), The concept of terminating zeroes only exists in strings. NSData will preserve the by

Re: NSData problems and viewing buffer data in hex

2014-05-07 Thread Jens Alfke
On May 7, 2014, at 9:21 AM, William Squires wrote: > Quickie question: Does [NSData getBytes:range:] return .length bytes > into the buffer specified, even if some of the bytes may be '\0' (terminating > null), so long as range is valid? If it’s a valid sub-range of the data it’ll copy range.

NSData problems and viewing buffer data in hex

2014-05-07 Thread William Squires
Quickie question: Does [NSData getBytes:range:] return .length bytes into the buffer specified, even if some of the bytes may be '\0' (terminating null), so long as range is valid? I'm trying to read in a specified record from a random-access file (record length is 1000 bytes = kRecSize), and I