void FreeMemToMemList( MemList *ml, void *p, int32 size )
AllocMemFromMemList()
. You can also use it to add memory to a private memory list created by AllocMemList()
.
Note: The memory you free to a memory list must be either memory that was previously allocated from the list or (when adding new memory to the list) memory of the type specified (by the p argument of AllocMemList()
) when the memory list was created.
The block of memory is expected to begin and end on nicely aligned bounds; the alignment size can be obtained by calling GetMemAllocAlignment()
. If the block is not properly aligned, the base is rounded up and the size is rounded down until alignment is achieved.
AllocMemFromMemList
(), AllocMemList(), FreeMemList(), GetMemAllocAlignment()