(dAtA []byte)
| 469 | } |
| 470 | |
| 471 | func (m *Desc) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 472 | i := len(dAtA) |
| 473 | _ = i |
| 474 | var l int |
| 475 | _ = l |
| 476 | if len(m.Ingesters) > 0 { |
| 477 | for k := range m.Ingesters { |
| 478 | v := m.Ingesters[k] |
| 479 | baseI := i |
| 480 | { |
| 481 | size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) |
| 482 | if err != nil { |
| 483 | return 0, err |
| 484 | } |
| 485 | i -= size |
| 486 | i = encodeVarintRing(dAtA, i, uint64(size)) |
| 487 | } |
| 488 | i-- |
| 489 | dAtA[i] = 0x12 |
| 490 | i -= len(k) |
| 491 | copy(dAtA[i:], k) |
| 492 | i = encodeVarintRing(dAtA, i, uint64(len(k))) |
| 493 | i-- |
| 494 | dAtA[i] = 0xa |
| 495 | i = encodeVarintRing(dAtA, i, uint64(baseI-i)) |
| 496 | i-- |
| 497 | dAtA[i] = 0xa |
| 498 | } |
| 499 | } |
| 500 | return len(dAtA) - i, nil |
| 501 | } |
| 502 | |
| 503 | func (m *InstanceDesc) Marshal() (dAtA []byte, err error) { |
| 504 | size := m.Size() |
no test coverage detected