• 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: Where's the buffer overrun?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where's the buffer overrun?


  • Subject: Re: Where's the buffer overrun?
  • From: "Hamish Allan" <email@hidden>
  • Date: Thu, 20 Mar 2008 08:42:07 +0000

On Thu, Mar 20, 2008 at 4:56 AM, Jens Alfke <email@hidden> wrote:

>  The ...noCopy family of methods are really just suggestions. They
>  don't guarantee that the Foundation object will use that block of
>  memory for its internal storage, only that it'll take ownership of the
>  block and free it when it's done with it.

In that case I think they're rather badly named. Particularly given
that -[NSMutableData dataWithBytesNoCopy:b length:d freeWhenDone:NO]
does not take ownership of the block, i.e., behaves exactly the same
as -[NSMutableData dataWithBytes:b length:d]

Hamish
_______________________________________________

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: 
 >Where's the buffer overrun? (From: Nick Zitzmann <email@hidden>)
 >Re: Where's the buffer overrun? (From: Chris Suter <email@hidden>)
 >Re: Where's the buffer overrun? (From: Andrew Farmer <email@hidden>)
 >Re: Where's the buffer overrun? (From: Chris Suter <email@hidden>)
 >Re: Where's the buffer overrun? (From: "Hamish Allan" <email@hidden>)
 >Re: Where's the buffer overrun? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Fwd: [Ann]: GNUstep Renaissance 0.9.0
  • Next by Date: NSNoCellMask differences in Leopard vs. Tiger
  • Previous by thread: Re: Where's the buffer overrun?
  • Next by thread: [SOLVED] Re: Where's the buffer overrun?
  • Index(es):
    • Date
    • Thread