Click or drag to resize
Accord.NET (logo)

MemoryManager Class

Internal memory manager used by image processing routines.
Inheritance Hierarchy
SystemObject
  Accord.ImagingMemoryManager

Namespace:  Accord.Imaging
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax
public static class MemoryManager
Request Example View Source

The MemoryManager type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberBusyMemoryBlocks
Amount of busy memory blocks in cache (which were not freed yet by user).
Public propertyStatic memberCachedMemory
Amount of cached memory in bytes.
Public propertyStatic memberCurrentCacheSize
Current amount of memory blocks in cache.
Public propertyStatic memberFreeMemoryBlocks
Amount of free memory blocks in cache (which are not busy by users).
Public propertyStatic memberMaximumCacheSize
Maximum amount of memory blocks to keep in cache.
Public propertyStatic memberMaxSizeToCache
Maximum memory block's size in bytes, which could be cached.
Public propertyStatic memberMinSizeToCache
Minimum memory block's size in bytes, which could be cached.
Top
Methods
  NameDescription
Public methodStatic memberAlloc
Allocate unmanaged memory.
Public methodStatic memberFree
Free unmanaged memory.
Public methodStatic memberFreeUnusedMemory
Force freeing unused memory.
Top
Remarks

The memory manager supports memory allocation/deallocation caching. Caching means that memory blocks may be not freed on request, but kept for later reuse.

See Also