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

Method Size

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

Source from the content-addressed store, hash-verified

3686}
3687
3688func (m *StreamWriteRequest) Size() (n int) {
3689 if m == nil {
3690 return 0
3691 }
3692 var l int
3693 _ = l
3694 l = len(m.TenantID)
3695 if l > 0 {
3696 n += 1 + l + sovCortex(uint64(l))
3697 }
3698 if m.Request != nil {
3699 l = m.Request.Size()
3700 n += 1 + l + sovCortex(uint64(l))
3701 }
3702 l = m.MessageWithBufRef.Size()
3703 n += 2 + l + sovCortex(uint64(l))
3704 return n
3705}
3706
3707func (m *WriteResponse) Size() (n int) {
3708 if m == nil {

Callers 3

XXX_SizeMethod · 0.95
MarshalMethod · 0.95
MarshalToMethod · 0.95

Calls 2

sovCortexFunction · 0.85
SizeMethod · 0.65

Tested by

no test coverage detected