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

Method Size

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

Source from the content-addressed store, hash-verified

2853}
2854
2855func (m *CachedResponse) Size() (n int) {
2856 if m == nil {
2857 return 0
2858 }
2859 var l int
2860 _ = l
2861 l = len(m.Key)
2862 if l > 0 {
2863 n += 1 + l + sovQuery(uint64(l))
2864 }
2865 if len(m.Extents) > 0 {
2866 for _, e := range m.Extents {
2867 l = e.Size()
2868 n += 1 + l + sovQuery(uint64(l))
2869 }
2870 }
2871 return n
2872}
2873
2874func (m *Extent) Size() (n int) {
2875 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