SurfaceHeap::Alloc (Compact 2013)
3/26/2014
Given a number of bytes to allocate, this method reserves a block of memory from the specified heap. A new SurfaceHeap object is created to encapsulate this block of memory. When the resulting heap is destroyed, it is marked for reuse.
Syntax
SurfaceHeap* Alloc(
DWORD size
);
Parameters
- size
The size, in bytes, for the new subheap allocated from the current heap.
Return Value
Returns a new SurfaceHeap object that contains memory allocated by the specified parent heap. If allocation fails, Returns NULL.
R
Requirements
Header |
ddgpe.h |
Library |
Ddgpe.lib |