Clearing a Memory Buffer?

2008-08-18 Thread Dave
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

Re: Clearing a Memory Buffer?

2008-08-18 Thread Jean-Daniel Dupas
Le 18 août 08 à 15:19, Dave a écrit : 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

Re: Clearing a Memory Buffer?

2008-08-18 Thread Sherm Pendley
On Mon, Aug 18, 2008 at 9:19 AM, Dave [EMAIL PROTECTED] 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

Re: Clearing a Memory Buffer?

2008-08-18 Thread Andy Lee
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

Re: Clearing a Memory Buffer?

2008-08-18 Thread Jason Coco
On Aug 18, 2008, at 09:19 , 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. bzero(3),

Re: Clearing a Memory Buffer?

2008-08-18 Thread Gregory Weston
Dave wrote: 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. If you want to fill an existing buffer with a specific