MCPcopy
hub / github.com/google/codesearch / mmap

Function mmap

index/read.go:421–427  ·  view source on GitHub ↗

mmap maps the given file into memory.

(file string)

Source from the content-addressed store, hash-verified

419
420// mmap maps the given file into memory.
421func mmap(file string) mmapData {
422 f, err := os.Open(file)
423 if err != nil {
424 log.Fatal(err)
425 }
426 return mmapFile(f)
427}
428
429// File returns the name of the index file to use.
430// It is either $CSEARCHINDEX or $HOME/.csearchindex.

Callers 1

OpenFunction · 0.85

Calls 1

mmapFileFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…