MCPcopy Create free account
hub / github.com/cortexproject/cortex / encodeVarintRing

Function encodeVarintRing

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

Source from the content-addressed store, hash-verified

488}
489
490func encodeVarintRing(dAtA []byte, offset int, v uint64) int {
491 offset -= sovRing(v)
492 base := offset
493 for v >= 1<<7 {
494 dAtA[offset] = uint8(v&0x7f | 0x80)
495 v >>= 7
496 offset++
497 }
498 dAtA[offset] = uint8(v)
499 return base
500}
501func (m *Desc) Size() (n int) {
502 if m == nil {
503 return 0

Callers 2

MarshalToSizedBufferMethod · 0.85
MarshalToSizedBufferMethod · 0.85

Calls 1

sovRingFunction · 0.85

Tested by

no test coverage detected