Exemplo n.º 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;
 }
Exemplo n.º 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;
 }