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

Method Size

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

Source from the content-addressed store, hash-verified

3668}
3669
3670func (m *MetadataV2) Size() (n int) {
3671 if m == nil {
3672 return 0
3673 }
3674 var l int
3675 _ = l
3676 if m.Type != 0 {
3677 n += 1 + sovCortex(uint64(m.Type))
3678 }
3679 if m.HelpRef != 0 {
3680 n += 1 + sovCortex(uint64(m.HelpRef))
3681 }
3682 if m.UnitRef != 0 {
3683 n += 1 + sovCortex(uint64(m.UnitRef))
3684 }
3685 return n
3686}
3687
3688func (m *StreamWriteRequest) Size() (n int) {
3689 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