MCPcopy Index your code
hub / github.com/antlr/codebuff / map

Method map

output/java_guava/1.4.16/Files.java:635–638  ·  view source on GitHub ↗

Fully maps a file read-only in to memory as per FileChannel#map(java.nio.channels.FileChannel.MapMode, long, long). Files are mapped from offset 0 to its length. This only works for files <= Integer#MAX_VALUE bytes. @param file the file to map @return a read-only buffer refl

(File file)

Source from the content-addressed store, hash-verified

633
634
635 public static MappedByteBuffer map(File file) throws IOException {
636 checkNotNull(file);
637 return map(file, MapMode.READ_ONLY);
638 }
639
640 /**
641 * Fully maps a file in to memory as per

Callers

nothing calls this directly

Calls 7

createMethod · 0.95
registerMethod · 0.95
rethrowMethod · 0.95
closeMethod · 0.95
toStringMethod · 0.65
checkNotNullMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected