|
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
)
Public Shared Function Alloc (
size As Integer
) As IntPtr
Request Example
View SourceParameters
- size
- Type: SystemInt32
Memory size to allocate.
Return Value
Type:
IntPtrReturn's pointer to the allocated memory buffer.
Exceptions Exception | Condition |
---|
OutOfMemoryException | There 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