예제 #1
0
 /**
  * Query a data block.
  *
  * @param n the block to query.
  * @return the requested block
  */
 Block getInitializedBlock(final int n) {
   blockInitialized.set(n, 1);
   block.offset = n * 16;
   return block;
 }
예제 #2
0
 /**
  * Query a data block.
  *
  * @param n the data block to query.
  * @return the requested block
  */
 Block getBlock(final int n) {
   if (blockInitialized.get(n) == 0) return null;
   block.offset = n * 16;
   return block;
 }