public static long map ( final FileChannel fileChannel , final FileChannel . MapMode mode , final long offset , final long length ) { try { return ( long ) MappingMethods . MAP_ADDRESS . invoke ( fileChannel , getMode ( mode ) , offset , length ) ; } catch ( final IllegalAccessException | InvocationTargetException ex ) { LangUtil . rethrowUnchecked ( ex ) ; } return 0 ; }
Map a range of a file and return the address at which the range begins .