VirtualBox

Changeset 22273 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Aug 14, 2009 11:00:51 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
51115
Message:

IPRT: Added RTHeapSimpleRelocate for saving and restoring of the heap.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/heap.h

    r20374 r22273  
    3939 * Initializes the heap.
    4040 *
    41  * @returns IPRT status code on success.
     41 * @returns IPRT status code.
    4242 * @param   pHeap       Where to store the heap anchor block on success.
    4343 * @param   pvMemory    Pointer to the heap memory.
     
    4949 * Merge two simple heaps into one.
    5050 *
    51  * The requiremet is of course that they next two each other memory wise.
     51 * The requirement is of course that they next two each other memory wise.
    5252 *
    53  * @returns IPRT status code on success.
     53 * @returns IPRT status code.
    5454 * @param   pHeap       Where to store the handle to the merged heap on success.
    5555 * @param   Heap1       Handle to the first heap.
     
    5959RTDECL(int) RTHeapSimpleMerge(PRTHEAPSIMPLE pHeap, RTHEAPSIMPLE Heap1, RTHEAPSIMPLE Heap2);
    6060
     61/**
     62 * Relocater the heap internal structures after copying it to a new location.
     63 * 
     64 * This can be used when loading a saved heap.
     65 * 
     66 * @returns IPRT status code.
     67 * @param   hHeap       Heap handle that has already been adjusted by to the new
     68 *                      location.  That is to say, when calling
     69 *                      RTHeapSimpleInit, the caller must note the offset of the
     70 *                      returned heap handle into the heap memory.  This offset
     71 *                      must be used when calcuating the handle value for the
     72 *                      new location.  The offset may in some cases not be zero!
     73 * @param   offDelta    The delta between the new and old location, i.e. what
     74 *                      should be added to the internal pointers.
     75 */
     76RTDECL(int) RTHeapSimpleRelocate(RTHEAPSIMPLE hHeap, uintptr_t offDelta);
     77 
    6178/**
    6279 * Allocates memory from the specified simple heap.
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette