private static int get(byte[] block, int offset, ByteBuffer buf, int len) {
    buf.put(block, offset, len);
    return len;
  }
Reads len bytes starting at the given offset in the given block into the given byte buffer.
jimfs/src/main/java/com/google/common/jimfs/RegularFile.java