h2/src/main/org/h2/mvstore/FreeSpaceBitSet.java
/**
     * Check whether one of the blocks is free.
     *
     * @param pos the position in bytes
     * @param length the number of bytes
     * @return true if a block is free
     */
Check whether one of the blocks is free.
@param pos the position in bytes
@param length the number of bytes
@return true if a block is free
Check whether one of the blocks is free . @param pos the position in bytes @param length the number of bytes @return true if a block is free
public boolean isFree(long pos, int length) {
        int start = getBlock(pos);
        int blocks = getBlockCount(length);
        for (int i = start; i < start + blocks; i++) {
            if (set.get(i)) {
                return false;
            }
        }
        return true;
    }
public boolean isFree ( long pos , int length ) { int start = getBlock ( pos ) ; int blocks = getBlockCount ( length ) ; for ( int i = start ; i < start + blocks ; i ++ ) { if ( set . get ( i ) ) { return false ; } } return true ; }
Check whether one of the blocks is free.
Check whether one of the blocks is free .