コード例 #1
0
ファイル: FileStore.java プロジェクト: dinglevin/levin-h2db
 /**
  * Read from the file.
  *
  * @param pos the write position
  * @param len the number of bytes to read
  * @return the byte buffer
  */
 public ByteBuffer readFully(long pos, int len) {
   ByteBuffer dst = ByteBuffer.allocate(len);
   DataUtils.readFully(file, pos, dst);
   readCount++;
   readBytes += len;
   return dst;
 }