Re: NSData problems and viewing buffer data in hex
Re: NSData problems and viewing buffer data in hex
- Subject: Re: NSData problems and viewing buffer data in hex
- From: Uli Kusterer <email@hidden>
- Date: Wed, 07 May 2014 19:57:12 +0200
On 07 May 2014, at 18:21, William Squires <email@hidden> 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. NSData will preserve the bytes as they were given and copy them out. If they're zeroes, then they're zeroes.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden