Mono Class Library: Mono.Unix.UnixMarshal Overview | MembersMono.Unix.UnixMarshal.AllocHeap Method |
Allocates size bytes from the system heap. [Edit]
|
A IntPtr containing the address of size bytes on the system heap, or IntPtr.Zero if the memory could not be allocated. [Edit]
Type Reason ArgumentOutOfRangeException size is a negative value. [Edit]
The "system heap" is where dynamic memory is allocated by the runtime C library, MSVCRT.DLL on Win32 and libc on Unix platforms.
The memory allocated by this function must be freed via UnixMarshal.FreeHeap to avoid a memory leak.
[Edit]
Namespace: Mono.Unix
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0