• 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: Clearing a Memory Buffer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Clearing a Memory Buffer?


  • Subject: Re: Clearing a Memory Buffer?
  • From: Andy Lee <email@hidden>
  • Date: Mon, 18 Aug 2008 13:07:31 -0400

Since Objective-C is a superset of C, you can use standard C libraries. My knowledge of those libraries is weak, but "apropos zero memory" in the Terminal turned up a bunch of stuff including bzero, memset, and calloc.

I see in Foundation there is an NSZoneCalloc() function and a bunch of related functions.

--Andy

On Aug 18, 2008, at 9:19 AM, Dave wrote:

Hi All,

I'm fairly new to Cocoa and was wondering if there are OS functions to Copy and Clear/Fill Memory available?

I've tried searching for obvious names like MemoryZero, ZeroMemory, CopyMemory etc. but can't seem to find anything.

Thanks a lot
All the Best
Dave


_______________________________________________

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

_______________________________________________

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: 
 >Clearing a Memory Buffer? (From: Dave <email@hidden>)

  • Prev by Date: Re: Clearing a Memory Buffer?
  • Next by Date: Re: Clearing a Memory Buffer?
  • Previous by thread: Re: Clearing a Memory Buffer?
  • Next by thread: Re: Clearing a Memory Buffer?
  • Index(es):
    • Date
    • Thread