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

Function encodeVarintCortex

pkg/cortexpb/cortex.pb.go:3528–3538  ·  view source on GitHub ↗
(dAtA []byte, offset int, v uint64)

Source from the content-addressed store, hash-verified

3526}
3527
3528func encodeVarintCortex(dAtA []byte, offset int, v uint64) int {
3529 offset -= sovCortex(v)
3530 base := offset
3531 for v >= 1<<7 {
3532 dAtA[offset] = uint8(v&0x7f | 0x80)
3533 v >>= 7
3534 offset++
3535 }
3536 dAtA[offset] = uint8(v)
3537 return base
3538}
3539func (m *MessageWithBufRef) Size() (n int) {
3540 if m == nil {
3541 return 0

Callers 15

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

Calls 1

sovCortexFunction · 0.85

Tested by

no test coverage detected