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

Method Size

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

Source from the content-addressed store, hash-verified

2872}
2873
2874func (m *Extent) Size() (n int) {
2875 if m == nil {
2876 return 0
2877 }
2878 var l int
2879 _ = l
2880 if m.Start != 0 {
2881 n += 1 + sovQuery(uint64(m.Start))
2882 }
2883 if m.End != 0 {
2884 n += 1 + sovQuery(uint64(m.End))
2885 }
2886 l = len(m.TraceId)
2887 if l > 0 {
2888 n += 1 + l + sovQuery(uint64(l))
2889 }
2890 if m.Response != nil {
2891 l = m.Response.Size()
2892 n += 1 + l + sovQuery(uint64(l))
2893 }
2894 return n
2895}
2896
2897func (m *SampleStream) Size() (n int) {
2898 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