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

Function fileList

index/write_test.go:101–116  ·  view source on GitHub ↗
(list ...uint32)

Source from the content-addressed store, hash-verified

99}
100
101func fileList(list ...uint32) string {
102 var buf []byte
103
104 last := ^uint32(0)
105 for _, x := range list {
106 delta := x - last
107 for delta >= 0x80 {
108 buf = append(buf, byte(delta)|0x80)
109 delta >>= 7
110 }
111 buf = append(buf, byte(delta))
112 last = x
113 }
114 buf = append(buf, 0)
115 return string(buf)
116}
117
118func buildFlushIndex(out string, paths []string, doFlush bool, fileData map[string]string) {
119 ix := Create(out)

Callers 1

write_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…