Click or drag to resize
Accord.NET (logo)

MemoryManagerAlloc Method

Allocate unmanaged memory.

Namespace:  Accord.Imaging
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax
public static IntPtr Alloc(
	int size
)
Request Example View Source

Parameters

size
Type: SystemInt32
Memory size to allocate.

Return Value

Type: IntPtr
Return's pointer to the allocated memory buffer.
Exceptions
ExceptionCondition
OutOfMemoryExceptionThere is insufficient memory to satisfy the request.
Remarks
The method allocates requested amount of memory and returns pointer to it. It may avoid allocation in the case some caching scheme is uses and there is already enough allocated memory available.
See Also