(dAtA []byte)
| 386 | } |
| 387 | |
| 388 | func (m *Desc) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 389 | i := len(dAtA) |
| 390 | _ = i |
| 391 | var l int |
| 392 | _ = l |
| 393 | if len(m.Ingesters) > 0 { |
| 394 | for k := range m.Ingesters { |
| 395 | v := m.Ingesters[k] |
| 396 | baseI := i |
| 397 | { |
| 398 | size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) |
| 399 | if err != nil { |
| 400 | return 0, err |
| 401 | } |
| 402 | i -= size |
| 403 | i = encodeVarintRing(dAtA, i, uint64(size)) |
| 404 | } |
| 405 | i-- |
| 406 | dAtA[i] = 0x12 |
| 407 | i -= len(k) |
| 408 | copy(dAtA[i:], k) |
| 409 | i = encodeVarintRing(dAtA, i, uint64(len(k))) |
| 410 | i-- |
| 411 | dAtA[i] = 0xa |
| 412 | i = encodeVarintRing(dAtA, i, uint64(baseI-i)) |
| 413 | i-- |
| 414 | dAtA[i] = 0xa |
| 415 | } |
| 416 | } |
| 417 | return len(dAtA) - i, nil |
| 418 | } |
| 419 | |
| 420 | func (m *InstanceDesc) Marshal() (dAtA []byte, err error) { |
| 421 | size := m.Size() |
no test coverage detected