Packagestarling.memory
Classpublic class FastMemoryManager
InheritanceFastMemoryManager Inheritance Object



Public Properties
 PropertyDefined By
  defaultHeap : ByteArray
[read-only]
FastMemoryManager
  fastHeap : ByteArray
[read-only]
FastMemoryManager
Public Methods
 MethodDefined By
  
FastMemoryManager
  
allocate(allocationSize:uint):uint
FastMemoryManager
  
freeMemory(offset:uint):void
FastMemoryManager
  
[static]
FastMemoryManager
  
reallocate(offset:uint, length:uint, newLength:uint):uint
FastMemoryManager
  
FastMemoryManager
  
FastMemoryManager
Property Detail
defaultHeapproperty
defaultHeap:ByteArray  [read-only]


Implementation
    public function get defaultHeap():ByteArray
fastHeapproperty 
fastHeap:ByteArray  [read-only]


Implementation
    public function get fastHeap():ByteArray
Constructor Detail
FastMemoryManager()Constructor
public function FastMemoryManager(size:uint)



Parameters
size:uint
Method Detail
allocate()method
public function allocate(allocationSize:uint):uint

Parameters

allocationSize:uint

Returns
uint
freeMemory()method 
public function freeMemory(offset:uint):void

Parameters

offset:uint

getInstance()method 
public static function getInstance():FastMemoryManager

Returns
FastMemoryManager
reallocate()method 
public function reallocate(offset:uint, length:uint, newLength:uint):uint

Parameters

offset:uint
 
length:uint
 
newLength:uint

Returns
uint
switchToDefaultHeap()method 
public function switchToDefaultHeap():void

switchToFastHeap()method 
public function switchToFastHeap():void