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

Function encodeVarintQuery

pkg/querier/tripperware/query.pb.go:2784–2794  ·  view source on GitHub ↗
(dAtA []byte, offset int, v uint64)

Source from the content-addressed store, hash-verified

2782}
2783
2784func encodeVarintQuery(dAtA []byte, offset int, v uint64) int {
2785 offset -= sovQuery(v)
2786 base := offset
2787 for v >= 1<<7 {
2788 dAtA[offset] = uint8(v&0x7f | 0x80)
2789 v >>= 7
2790 offset++
2791 }
2792 dAtA[offset] = uint8(v)
2793 return base
2794}
2795func (m *PrometheusResponse) Size() (n int) {
2796 if m == nil {
2797 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

sovQueryFunction · 0.85

Tested by

no test coverage detected