(dAtA []byte)
| 4394 | return nil |
| 4395 | } |
| 4396 | func (m *SampleHistogram) Unmarshal(dAtA []byte) error { |
| 4397 | l := len(dAtA) |
| 4398 | iNdEx := 0 |
| 4399 | for iNdEx < l { |
| 4400 | preIndex := iNdEx |
| 4401 | var wire uint64 |
| 4402 | for shift := uint(0); ; shift += 7 { |
| 4403 | if shift >= 64 { |
| 4404 | return ErrIntOverflowQuery |
| 4405 | } |
| 4406 | if iNdEx >= l { |
| 4407 | return io.ErrUnexpectedEOF |
| 4408 | } |
| 4409 | b := dAtA[iNdEx] |
| 4410 | iNdEx++ |
| 4411 | wire |= uint64(b&0x7F) << shift |
| 4412 | if b < 0x80 { |
| 4413 | break |
| 4414 | } |
| 4415 | } |
| 4416 | fieldNum := int32(wire >> 3) |
| 4417 | wireType := int(wire & 0x7) |
| 4418 | if wireType == 4 { |
| 4419 | return fmt.Errorf("proto: SampleHistogram: wiretype end group for non-group") |
| 4420 | } |
| 4421 | if fieldNum <= 0 { |
| 4422 | return fmt.Errorf("proto: SampleHistogram: illegal tag %d (wire type %d)", fieldNum, wire) |
| 4423 | } |
| 4424 | switch fieldNum { |
| 4425 | case 1: |
| 4426 | if wireType != 1 { |
| 4427 | return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) |
| 4428 | } |
| 4429 | var v uint64 |
| 4430 | if (iNdEx + 8) > l { |
| 4431 | return io.ErrUnexpectedEOF |
| 4432 | } |
| 4433 | v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) |
| 4434 | iNdEx += 8 |
| 4435 | m.Count = float64(math.Float64frombits(v)) |
| 4436 | case 2: |
| 4437 | if wireType != 1 { |
| 4438 | return fmt.Errorf("proto: wrong wireType = %d for field Sum", wireType) |
| 4439 | } |
| 4440 | var v uint64 |
| 4441 | if (iNdEx + 8) > l { |
| 4442 | return io.ErrUnexpectedEOF |
| 4443 | } |
| 4444 | v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) |
| 4445 | iNdEx += 8 |
| 4446 | m.Sum = float64(math.Float64frombits(v)) |
| 4447 | case 3: |
| 4448 | if wireType != 2 { |
| 4449 | return fmt.Errorf("proto: wrong wireType = %d for field Buckets", wireType) |
| 4450 | } |
| 4451 | var msglen int |
| 4452 | for shift := uint(0); ; shift += 7 { |
| 4453 | if shift >= 64 { |
no test coverage detected