(dAtA []byte)
| 4491 | } |
| 4492 | |
| 4493 | func (m *TraceSearchMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 4494 | i := len(dAtA) |
| 4495 | _ = i |
| 4496 | var l int |
| 4497 | _ = l |
| 4498 | if len(m.ServiceStats) > 0 { |
| 4499 | for k := range m.ServiceStats { |
| 4500 | v := m.ServiceStats[k] |
| 4501 | baseI := i |
| 4502 | if v != nil { |
| 4503 | { |
| 4504 | size, err := v.MarshalToSizedBuffer(dAtA[:i]) |
| 4505 | if err != nil { |
| 4506 | return 0, err |
| 4507 | } |
| 4508 | i -= size |
| 4509 | i = encodeVarintTempo(dAtA, i, uint64(size)) |
| 4510 | } |
| 4511 | i-- |
| 4512 | dAtA[i] = 0x12 |
| 4513 | } |
| 4514 | i -= len(k) |
| 4515 | copy(dAtA[i:], k) |
| 4516 | i = encodeVarintTempo(dAtA, i, uint64(len(k))) |
| 4517 | i-- |
| 4518 | dAtA[i] = 0xa |
| 4519 | i = encodeVarintTempo(dAtA, i, uint64(baseI-i)) |
| 4520 | i-- |
| 4521 | dAtA[i] = 0x42 |
| 4522 | } |
| 4523 | } |
| 4524 | if len(m.SpanSets) > 0 { |
| 4525 | for iNdEx := len(m.SpanSets) - 1; iNdEx >= 0; iNdEx-- { |
| 4526 | { |
| 4527 | size, err := m.SpanSets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 4528 | if err != nil { |
| 4529 | return 0, err |
| 4530 | } |
| 4531 | i -= size |
| 4532 | i = encodeVarintTempo(dAtA, i, uint64(size)) |
| 4533 | } |
| 4534 | i-- |
| 4535 | dAtA[i] = 0x3a |
| 4536 | } |
| 4537 | } |
| 4538 | if m.SpanSet != nil { |
| 4539 | { |
| 4540 | size, err := m.SpanSet.MarshalToSizedBuffer(dAtA[:i]) |
| 4541 | if err != nil { |
| 4542 | return 0, err |
| 4543 | } |
| 4544 | i -= size |
| 4545 | i = encodeVarintTempo(dAtA, i, uint64(size)) |
| 4546 | } |
| 4547 | i-- |
| 4548 | dAtA[i] = 0x32 |
| 4549 | } |
| 4550 | if m.DurationMs != 0 { |
no test coverage detected