CMemAllocator Class

 
Microsoft DirectShow 9.0

CMemAllocator Class

CMemAllocator Class Hierarchy

Implements an allocator that supports the IMemAllocator interface.

This class derives from CBaseAllocator. For more information about allocators, refer to the documentation for CBaseAllocator.

Requirements

**  Header:** Declared in Amfilter.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

Protected Member Variables  
m_pBuffer Pointer to the memory block that contains the buffers.
Protected Methods  
Free Placeholder method; called during a decommit operation.
ReallyFree Releases the memory for the buffers.
Alloc Allocates memory for the buffers.
Public Methods  
CMemAllocator Constructor method.
~CMemAllocator Destructor method.
CreateInstance Creates a new instance of the CMemAllocator class.
IMemAllocator Methods  
SetProperties Specifies the number of buffers to allocate and the size of each buffer.