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

Method Size

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

Source from the content-addressed store, hash-verified

5017}
5018
5019func (m *Chunk) Size() (n int) {
5020 if m == nil {
5021 return 0
5022 }
5023 var l int
5024 _ = l
5025 if m.StartTimestampMs != 0 {
5026 n += 1 + sovIngester(uint64(m.StartTimestampMs))
5027 }
5028 if m.EndTimestampMs != 0 {
5029 n += 1 + sovIngester(uint64(m.EndTimestampMs))
5030 }
5031 if m.Encoding != 0 {
5032 n += 1 + sovIngester(uint64(m.Encoding))
5033 }
5034 l = len(m.Data)
5035 if l > 0 {
5036 n += 1 + l + sovIngester(uint64(l))
5037 }
5038 return n
5039}
5040
5041func (m *LabelMatchers) Size() (n int) {
5042 if m == nil {

Callers 3

XXX_SizeMethod · 0.95
MarshalMethod · 0.95
MarshalToMethod · 0.95

Calls 1

sovIngesterFunction · 0.85

Tested by

no test coverage detected