• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSData problems and viewing buffer data in hex
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSData problems and viewing buffer data in hex (From: William Squires <email@hidden>)

  • Prev by Date: Re: Help with Help
  • Next by Date: Re: Help with Help
  • Previous by thread: Re: NSData problems and viewing buffer data in hex
  • Next by thread: NSNumberFormatter 10.0+ style exception with zero
  • Index(es):
    • Date
    • Thread