[Mono-dev] Allocating unmanaged memory

Jonathan Pryor jonpryor at vt.edu
Thu Jan 4 08:36:09 EST 2007

On Thu, 2007-01-04 at 12:19 +0100, Leszek Ciesielski wrote:
> I need to allocate unmanaged memory AND make sure it is filled with
> 0's. Is there some clever/fast way to do this?  So far, I found only
> Marshal.WriteByte, which sets one byte at a time.

Mono.Unix.Native.Stdlib.calloc() in Mono.Posix.dll will do this.

 - Jon

More information about the Mono-devel-list mailing list