public class Memory
extends java.lang.Object
| Constructor and Description |
|---|
Memory(int base,
int size) |
| Modifier and Type | Method and Description |
|---|---|
static int |
allocateBackingStore(int size) |
int |
consumedMemory() |
int |
getBase() |
static Memory |
getHeapArea() |
int |
getSize() |
void |
reset(int newFree)
Resets the memory by setting free to the new free value
newFree = 0 means, that the whole memory is reset
Precondition: 0 <= newFree < size
|
void |
switchToArea(Memory newScope) |
java.lang.String |
toString() |
public java.lang.String toString()
toString in class java.lang.Objectpublic void switchToArea(Memory newScope)
public static int allocateBackingStore(int size)
public static Memory getHeapArea()
public void reset(int newFree)
newFree - the new free valuepublic int consumedMemory()
public int getBase()
public int getSize()