MCPcopy Index your code
hub / github.com/google/codesearch / finish

Method finish

index/write.go:540–545  ·  view source on GitHub ↗

finish flushes the file to disk and returns an open file ready for reading.

()

Source from the content-addressed store, hash-verified

538
539// finish flushes the file to disk and returns an open file ready for reading.
540func (b *bufWriter) finish() *os.File {
541 b.flush()
542 f := b.file
543 f.Seek(0, 0)
544 return f
545}
546
547func (b *bufWriter) writeTrigram(t uint32) {
548 if cap(b.buf)-len(b.buf) < 3 {

Callers 1

copyFileFunction · 0.80

Calls 1

flushMethod · 0.95

Tested by

no test coverage detected