edu.cornell.cs.sam.core
Class HeapAllocator.Allocation

java.lang.Object
  extended by edu.cornell.cs.sam.core.HeapAllocator.Allocation
Enclosing interface:
HeapAllocator

public static class HeapAllocator.Allocation
extends java.lang.Object

Represents a heap allocation


Constructor Summary
HeapAllocator.Allocation(int addr, int size)
          Create a new allocation
 
Method Summary
 int getAddr()
          Gets the start address of this allocation
 int getSize()
          Gets the size of this allocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeapAllocator.Allocation

public HeapAllocator.Allocation(int addr,
                                int size)
Create a new allocation

Parameters:
addr - The start address of the allocation
size - The size of the allocation
Method Detail

getAddr

public int getAddr()
Gets the start address of this allocation

Returns:
The start address

getSize

public int getSize()
Gets the size of this allocation

Returns:
The allocation size