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

Method Size

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

Source from the content-addressed store, hash-verified

4620}
4621
4622func (m *ReadResponse) Size() (n int) {
4623 if m == nil {
4624 return 0
4625 }
4626 var l int
4627 _ = l
4628 if len(m.Results) > 0 {
4629 for _, e := range m.Results {
4630 l = e.Size()
4631 n += 1 + l + sovIngester(uint64(l))
4632 }
4633 }
4634 return n
4635}
4636
4637func (m *QueryResponse) Size() (n int) {
4638 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