MemoryHeap::SetLimit

MemoryHeap::SetLimit
virtual void SetLimit(UPInt newLimit) = 0;
Description

SetLimit sets a fixed memory limit on the allocation size. This method can be used to reserve memory and enforce a limit on the memory allocation. When the limit is exceeded, LimitHandler::OnExceedLimit is called to perform cleanup.

Parameters
Parameters 
Description 
UPInt newLimit 
New limit on the amount of memory allocated for the heap.