Allocate unmanaged memory.
Namespace:
AForge.ImagingAssembly: AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)
Syntax
Parameters
- size
- Type: System..::.Int32
Memory size to allocate.
Return Value
Return’s pointer to the allocated memory buffer.
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.
Exceptions
| Exception | Condition |
|---|---|
| System..::.OutOfMemoryException | There is insufficient memory to satisfy the request. |