Share via


SurfaceHeap Class

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/28/2008

The SurfaceHeap class is a heap management class that should be used when the capabilities of the Node2D class do not satisfy the requirements of your driver. It is most useful when your driver is capable of supporting surface types of different bit depths. Your driver is not required to use the SurfaceHeap class. However, Mirosoft recommends that when you develop a new driver or extend DDHAL support in an existing driver, you migrate from Node2D to SurfaceHeap. For a description of the SurfaceHeap class, see SurfaceHeap Class Definition.

The following table shows the methods defined in the SurfaceHeap class.

Method Description

SurfaceHeap Constructor

Constructor for the SurfaceHeap class.

SurfaceHeap::Address

Retrieves the address of the current heap.

SurfaceHeap::Alloc

Reserves a block of memory from the specified heap.

SurfaceHeap::Available

Determines the amount of nonallocated memory in the current heap.

SurfaceHeap::Free

Releases memory from the current heap.

SurfaceHeap::NodeSize

Retrieves the size, in bytes, of the current heap, excluding subsequent nodes.

SurfaceHeap::Size

Retrieves the total size of the current heap.