• 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: Zeroing out instance variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Zeroing out instance variables


  • Subject: Re: Zeroing out instance variables
  • From: Ben Haller <email@hidden>
  • Date: Fri, 16 Apr 2010 17:29:31 -0400

3. bzero(individual + individualIvarsOffset, individualIvarsSize);

This should cast "individual" to void* before doing the pointer arithmetic, of course.


So, thoughts? Am I insane? Is the above scheme safe? Is there a better way? Thanks for any feedback!

I should note that the scheme described does appear to work correctly on 10.5, at least.


Ben Haller
McGill University


_______________________________________________

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


  • Follow-Ups:
    • Re: Zeroing out instance variables
      • From: Wade Tregaskis <email@hidden>
    • Re: Zeroing out instance variables
      • From: "Paul Sanders" <email@hidden>
References: 
 >Zeroing out instance variables (From: Ben Haller <email@hidden>)

  • Prev by Date: Zeroing out instance variables
  • Next by Date: Re: Zeroing out instance variables
  • Previous by thread: Zeroing out instance variables
  • Next by thread: Re: Zeroing out instance variables
  • Index(es):
    • Date
    • Thread