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

Function encodeVarintRuler

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

Source from the content-addressed store, hash-verified

1601}
1602
1603func encodeVarintRuler(dAtA []byte, offset int, v uint64) int {
1604 offset -= sovRuler(v)
1605 base := offset
1606 for v >= 1<<7 {
1607 dAtA[offset] = uint8(v&0x7f | 0x80)
1608 v >>= 7
1609 offset++
1610 }
1611 dAtA[offset] = uint8(v)
1612 return base
1613}
1614func (m *RulesRequest) Size() (n int) {
1615 if m == nil {
1616 return 0

Callers 6

MarshalToSizedBufferMethod · 0.85
MarshalToSizedBufferMethod · 0.85
MarshalToSizedBufferMethod · 0.85
MarshalToSizedBufferMethod · 0.85
MarshalToSizedBufferMethod · 0.85
MarshalToSizedBufferMethod · 0.85

Calls 1

sovRulerFunction · 0.85

Tested by

no test coverage detected