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

Method uvarint

index/read.go:133–139  ·  view source on GitHub ↗

uvarint returns the varint value at the given offset in the index data.

(off uint32)

Source from the content-addressed store, hash-verified

131
132// uvarint returns the varint value at the given offset in the index data.
133func (ix *Index) uvarint(off uint32) uint32 {
134 v, n := binary.Uvarint(ix.slice(off, -1))
135 if n <= 0 {
136 corrupt()
137 }
138 return uint32(v)
139}
140
141// Paths returns the list of indexed paths.
142func (ix *Index) Paths() []string {

Callers

nothing calls this directly

Calls 2

sliceMethod · 0.95
corruptFunction · 0.85

Tested by

no test coverage detected