public class BitAlloc64 extends java.lang.Object implements IAllocator64
| Constructor and Description |
|---|
BitAlloc64()
Creates a new instance of BitAlloc64.
|
| Modifier and Type | Method and Description |
|---|---|
long |
Allocate()
Returns the next available location (address).
|
boolean |
CanAllocate()
Returns true if the allocator's Size is less than its MaxSize.
|
void |
Clear()
Frees all locations (addresses).
|
long |
Count()
Returns the number of addresses already allocated.
|
void |
Deallocate(long address)
Frees a location (address) that was allocated with
Allocate(). |
long |
MaxSize()
Returns the allocator's maximum possible size
(the highest address).
|
long |
Size()
Returns the number of addresses.
|
public long Size()
public long MaxSize()
public long Count()
public boolean CanAllocate()
public long Allocate()
Allocate in interface IAllocator64public void Deallocate(long address)
Allocate().Deallocate in interface IAllocator64address - The address to be released.public void Clear()
Copyright© 2012 Progeneric Systems, Inc. All Rights Reserved.