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

Method Size

pkg/querier/tripperware/query.pb.go:2836–2853  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2834}
2835
2836func (m *PrometheusData) Size() (n int) {
2837 if m == nil {
2838 return 0
2839 }
2840 var l int
2841 _ = l
2842 l = len(m.ResultType)
2843 if l > 0 {
2844 n += 1 + l + sovQuery(uint64(l))
2845 }
2846 l = m.Result.Size()
2847 n += 1 + l + sovQuery(uint64(l))
2848 if m.Stats != nil {
2849 l = m.Stats.Size()
2850 n += 1 + l + sovQuery(uint64(l))
2851 }
2852 return n
2853}
2854
2855func (m *CachedResponse) Size() (n int) {
2856 if m == nil {

Callers 3

XXX_SizeMethod · 0.95
MarshalMethod · 0.95
MarshalToMethod · 0.95

Calls 2

sovQueryFunction · 0.85
SizeMethod · 0.65

Tested by

no test coverage detected