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

Method Size

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

Source from the content-addressed store, hash-verified

2978}
2979
2980func (m *PrometheusResponseStats) Size() (n int) {
2981 if m == nil {
2982 return 0
2983 }
2984 var l int
2985 _ = l
2986 if m.Samples != nil {
2987 l = m.Samples.Size()
2988 n += 1 + l + sovQuery(uint64(l))
2989 }
2990 return n
2991}
2992
2993func (m *PrometheusResponseSamplesStats) Size() (n int) {
2994 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