Documentation Project 1
ContentsIndexHome
PreviousUpNext
sack::memory::HeapMoveEx Function
C++
MEM_PROC POINTER MEM_API HeapMoveEx(PMEM pNewHeap, POINTER source DBG_PASS);
#define HeapMove(h,s) HeapMoveEx( (h), (s) DBG_SRC )
Parameters 
Description 
PMEM pNewHeap 
heap target to move the block to. 
source 
source block to move - pointer to the data in the block. 

Moves a block of memory from one heap to another.

Since each block remembers its own size, it is possible to move a block from one heap to another. A heap might be a memory mapped file at a specific address for instance.

Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!