private static WindowsFileAttributes fromFileInformation(long address,int reparseTag){
  int fileAttrs=unsafe.getInt(address + OFFSETOF_FILE_INFORMATION_ATTRIBUTES);
  long creationTime=unsafe.getLong(address + OFFSETOF_FILE_INFORMATION_CREATETIME);
  long lastAccessTime=unsafe.getLong(address + OFFSETOF_FILE_INFORMATION_LASTACCESSTIME);
  long lastWriteTime=unsafe.getLong(address + OFFSETOF_FILE_INFORMATION_LASTWRITETIME);
  long size=((long)(unsafe.getInt(address + OFFSETOF_FILE_INFORMATION_SIZEHIGH)) << 32) + (unsafe.getInt(address + OFFSETOF_FILE_INFORMATION_SIZELOW) & 0xFFFFFFFFL);
  int volSerialNumber=unsafe.getInt(address + OFFSETOF_FILE_INFORMATION_VOLSERIALNUM);
  int fileIndexHigh=unsafe.getInt(address + OFFSETOF_FILE_INFORMATION_INDEXHIGH);
  int fileIndexLow=unsafe.getInt(address + OFFSETOF_FILE_INFORMATION_INDEXLOW);
  return new WindowsFileAttributes(fileAttrs,creationTime,lastAccessTime,lastWriteTime,size,reparseTag,volSerialNumber,fileIndexHigh,fileIndexLow);
}

private static WindowsFileAttributes fromFileInformation ( long address , int reparseTag ) { int fileAttrs = unsafe . getInt ( address + OFFSETOF_FILE_INFORMATION_ATTRIBUTES ) ; long creationTime = unsafe . getLong ( address + OFFSETOF_FILE_INFORMATION_CREATETIME ) ; long lastAccessTime = unsafe . getLong ( address + OFFSETOF_FILE_INFORMATION_LASTACCESSTIME ) ; long lastWriteTime = unsafe . getLong ( address + OFFSETOF_FILE_INFORMATION_LASTWRITETIME ) ; long size = ( ( long ) ( unsafe . getInt ( address + OFFSETOF_FILE_INFORMATION_SIZEHIGH ) ) << 32 ) + ( unsafe . getInt ( address + OFFSETOF_FILE_INFORMATION_SIZELOW ) & 0xFFFFFFFFL ) ; int volSerialNumber = unsafe . getInt ( address + OFFSETOF_FILE_INFORMATION_VOLSERIALNUM ) ; int fileIndexHigh = unsafe . getInt ( address + OFFSETOF_FILE_INFORMATION_INDEXHIGH ) ; int fileIndexLow = unsafe . getInt ( address + OFFSETOF_FILE_INFORMATION_INDEXLOW ) ; return new WindowsFileAttributes ( fileAttrs , creationTime , lastAccessTime , lastWriteTime , size , reparseTag , volSerialNumber , fileIndexHigh , fileIndexLow ) ; }
create a windowsfileattributes from a by_handle_file_information structure
