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.

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

 

Requirements

Header

Amfilter.h (include Streams.h)

Library

Strmbase.lib (retail builds);
Strmbasd.lib (debug builds)

See also

Providing a Custom Allocator

 

 

Show: