MCPcopy
hub / github.com/grafana/tempo / MarshalToSizedBuffer

Method MarshalToSizedBuffer

pkg/tempopb/tempo.pb.go:4599–4615  ·  view source on GitHub ↗
(dAtA []byte)

Source from the content-addressed store, hash-verified

4597}
4598
4599func (m *ServiceStats) MarshalToSizedBuffer(dAtA []byte) (int, error) {
4600 i := len(dAtA)
4601 _ = i
4602 var l int
4603 _ = l
4604 if m.ErrorCount != 0 {
4605 i = encodeVarintTempo(dAtA, i, uint64(m.ErrorCount))
4606 i--
4607 dAtA[i] = 0x10
4608 }
4609 if m.SpanCount != 0 {
4610 i = encodeVarintTempo(dAtA, i, uint64(m.SpanCount))
4611 i--
4612 dAtA[i] = 0x8
4613 }
4614 return len(dAtA) - i, nil
4615}
4616
4617func (m *SpanSet) Marshal() (dAtA []byte, err error) {
4618 size := m.Size()

Callers 3

XXX_MarshalMethod · 0.95
MarshalMethod · 0.95
MarshalToMethod · 0.95

Calls 1

encodeVarintTempoFunction · 0.85

Tested by

no test coverage detected