MCPcopy Create free account
hub / github.com/antlr/codebuff / map

Method map

corpus/java/training/guava/io/Files.java:601–604  ·  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

599 * @since 2.0
600 */
601 public static MappedByteBuffer map(File file) throws IOException {
602 checkNotNull(file);
603 return map(file, MapMode.READ_ONLY);
604 }
605
606 /**
607 * Fully maps a file in to memory as per

Callers 9

labelMethod · 0.45
stringRefMethod · 0.45
tokenRefMethod · 0.45
ruleRefMethod · 0.45
BasicSemanticChecksClass · 0.45
discoverOuterAltMethod · 0.45
trackRefMethod · 0.45
defineRuleMethod · 0.45

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