MCPcopy
hub / github.com/grafana/dskit / encodeVarintRing

Function encodeVarintRing

ring/ring.pb.go:610–620  ·  view source on GitHub ↗
(dAtA []byte, offset int, v uint64)

Source from the content-addressed store, hash-verified

608}
609
610func encodeVarintRing(dAtA []byte, offset int, v uint64) int {
611 offset -= sovRing(v)
612 base := offset
613 for v >= 1<<7 {
614 dAtA[offset] = uint8(v&0x7f | 0x80)
615 v >>= 7
616 offset++
617 }
618 dAtA[offset] = uint8(v)
619 return base
620}
621func (m *Desc) Size() (n int) {
622 if m == nil {
623 return 0

Callers 2

MarshalToSizedBufferMethod · 0.85
MarshalToSizedBufferMethod · 0.85

Calls 1

sovRingFunction · 0.85

Tested by

no test coverage detected