NSData problems and viewing buffer data in hex

2014-05-07 Thread William Squires
Quickie question: Does [NSData getBytes:range:] return range.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),

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 wsqui...@satx.rr.com wrote: Quickie question: Does [NSData getBytes:range:] return range.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

Re: NSData problems and viewing buffer data in hex

2014-05-07 Thread Uli Kusterer
On 07 May 2014, at 18:21, William Squires wsqui...@satx.rr.com wrote: Quickie question: Does [NSData getBytes:range:] return range.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.