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

Method Size

pkg/cortexpb/cortex.pb.go:3765–3780  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3763}
3764
3765func (m *LabelPair) Size() (n int) {
3766 if m == nil {
3767 return 0
3768 }
3769 var l int
3770 _ = l
3771 l = len(m.Name)
3772 if l > 0 {
3773 n += 1 + l + sovCortex(uint64(l))
3774 }
3775 l = len(m.Value)
3776 if l > 0 {
3777 n += 1 + l + sovCortex(uint64(l))
3778 }
3779 return n
3780}
3781
3782func (m *Sample) Size() (n int) {
3783 if m == nil {

Callers 3

XXX_SizeMethod · 0.95
MarshalMethod · 0.95
MarshalToMethod · 0.95

Calls 1

sovCortexFunction · 0.85

Tested by

no test coverage detected