(dAtA []byte)
| 4630 | } |
| 4631 | |
| 4632 | func (m *SpanSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 4633 | i := len(dAtA) |
| 4634 | _ = i |
| 4635 | var l int |
| 4636 | _ = l |
| 4637 | if len(m.Attributes) > 0 { |
| 4638 | for iNdEx := len(m.Attributes) - 1; iNdEx >= 0; iNdEx-- { |
| 4639 | { |
| 4640 | size, err := m.Attributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 4641 | if err != nil { |
| 4642 | return 0, err |
| 4643 | } |
| 4644 | i -= size |
| 4645 | i = encodeVarintTempo(dAtA, i, uint64(size)) |
| 4646 | } |
| 4647 | i-- |
| 4648 | dAtA[i] = 0x1a |
| 4649 | } |
| 4650 | } |
| 4651 | if m.Matched != 0 { |
| 4652 | i = encodeVarintTempo(dAtA, i, uint64(m.Matched)) |
| 4653 | i-- |
| 4654 | dAtA[i] = 0x10 |
| 4655 | } |
| 4656 | if len(m.Spans) > 0 { |
| 4657 | for iNdEx := len(m.Spans) - 1; iNdEx >= 0; iNdEx-- { |
| 4658 | { |
| 4659 | size, err := m.Spans[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 4660 | if err != nil { |
| 4661 | return 0, err |
| 4662 | } |
| 4663 | i -= size |
| 4664 | i = encodeVarintTempo(dAtA, i, uint64(size)) |
| 4665 | } |
| 4666 | i-- |
| 4667 | dAtA[i] = 0xa |
| 4668 | } |
| 4669 | } |
| 4670 | return len(dAtA) - i, nil |
| 4671 | } |
| 4672 | |
| 4673 | func (m *Span) Marshal() (dAtA []byte, err error) { |
| 4674 | size := m.Size() |
no test coverage detected