MCPcopy Create free account
hub / github.com/google/pprof / peekNumVarints

Function peekNumVarints

profile/proto.go:191–199  ·  view source on GitHub ↗
(data []byte)

Source from the content-addressed store, hash-verified

189}
190
191func peekNumVarints(data []byte) (numVarints int) {
192 for ; len(data) > 0; numVarints++ {
193 var err error
194 if _, data, err = decodeVarint(data); err != nil {
195 break
196 }
197 }
198 return numVarints
199}
200
201func decodeVarint(data []byte) (uint64, []byte, error) {
202 var u uint64

Callers 2

decodeInt64sFunction · 0.85
decodeUint64sFunction · 0.85

Calls 1

decodeVarintFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…