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

Method Size

pkg/ingester/client/ingester.pb.go:4675–4694  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4673}
4674
4675func (m *ExemplarQueryRequest) Size() (n int) {
4676 if m == nil {
4677 return 0
4678 }
4679 var l int
4680 _ = l
4681 if m.StartTimestampMs != 0 {
4682 n += 1 + sovIngester(uint64(m.StartTimestampMs))
4683 }
4684 if m.EndTimestampMs != 0 {
4685 n += 1 + sovIngester(uint64(m.EndTimestampMs))
4686 }
4687 if len(m.Matchers) > 0 {
4688 for _, e := range m.Matchers {
4689 l = e.Size()
4690 n += 1 + l + sovIngester(uint64(l))
4691 }
4692 }
4693 return n
4694}
4695
4696func (m *QueryStreamResponse) Size() (n int) {
4697 if m == nil {

Callers 3

XXX_SizeMethod · 0.95
MarshalMethod · 0.95
MarshalToMethod · 0.95

Calls 2

sovIngesterFunction · 0.85
SizeMethod · 0.65

Tested by

no test coverage detected