/** Returns true if a slot is allocated */ boolean isAllocated(int slot) { return get(slot).getBlock() > 0; }
Location location = new Location( fp.get( slot ) );
new Location(fp.get(slot)); fp.free(slot); if (fp.getCount() == 0) {
/** * Returns true if a slot is allocated */ private boolean isAllocated( int slot ) { return get( slot ).getBlock() > 0; }
new Location(fp.get(slot)); fp.free(slot); if (fp.getCount() == 0) {
/** Returns true if a slot is allocated */ boolean isAllocated(int slot) { return get(slot).getBlock() > 0; }
/** Frees a slot */ void free(int slot) { get(slot).setBlock(0); setCount((short) (getCount() - 1)); }
/** Frees a slot */ void free(int slot) { get(slot).setBlock(0); setCount((short) (getCount() - 1)); }
/** * Frees a slot */ void free( int slot ) { get( slot ).setBlock( 0 ); setCount( (short) ( getCount() - 1 ) ); }