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

Function encodeVarint

profile/proto.go:64–70  ·  view source on GitHub ↗
(b *buffer, x uint64)

Source from the content-addressed store, hash-verified

62}
63
64func encodeVarint(b *buffer, x uint64) {
65 for x >= 128 {
66 b.data = append(b.data, byte(x)|0x80)
67 x >>= 7
68 }
69 b.data = append(b.data, byte(x))
70}
71
72func encodeLength(b *buffer, tag int, len int) {
73 encodeVarint(b, uint64(tag)<<3|2)

Callers 4

encodeLengthFunction · 0.85
encodeUint64Function · 0.85
encodeUint64sFunction · 0.85
encodeInt64sFunction · 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…