MCPcopy
hub / github.com/grafana/tempo / skipTempo

Function skipTempo

pkg/tempopb/tempo.pb.go:13447–13524  ·  view source on GitHub ↗
(dAtA []byte)

Source from the content-addressed store, hash-verified

13445 return nil
13446}
13447func skipTempo(dAtA []byte) (n int, err error) {
13448 l := len(dAtA)
13449 iNdEx := 0
13450 depth := 0
13451 for iNdEx < l {
13452 var wire uint64
13453 for shift := uint(0); ; shift += 7 {
13454 if shift >= 64 {
13455 return 0, ErrIntOverflowTempo
13456 }
13457 if iNdEx >= l {
13458 return 0, io.ErrUnexpectedEOF
13459 }
13460 b := dAtA[iNdEx]
13461 iNdEx++
13462 wire |= (uint64(b) & 0x7F) << shift
13463 if b < 0x80 {
13464 break
13465 }
13466 }
13467 wireType := int(wire & 0x7)
13468 switch wireType {
13469 case 0:
13470 for shift := uint(0); ; shift += 7 {
13471 if shift >= 64 {
13472 return 0, ErrIntOverflowTempo
13473 }
13474 if iNdEx >= l {
13475 return 0, io.ErrUnexpectedEOF
13476 }
13477 iNdEx++
13478 if dAtA[iNdEx-1] < 0x80 {
13479 break
13480 }
13481 }
13482 case 1:
13483 iNdEx += 8
13484 case 2:
13485 var length int
13486 for shift := uint(0); ; shift += 7 {
13487 if shift >= 64 {
13488 return 0, ErrIntOverflowTempo
13489 }
13490 if iNdEx >= l {
13491 return 0, io.ErrUnexpectedEOF
13492 }
13493 b := dAtA[iNdEx]
13494 iNdEx++
13495 length |= (int(b) & 0x7F) << shift
13496 if b < 0x80 {
13497 break
13498 }
13499 }
13500 if length < 0 {
13501 return 0, ErrInvalidLengthTempo
13502 }
13503 iNdEx += length
13504 case 3:

Callers 15

UnmarshalMethod · 0.85
UnmarshalMethod · 0.85
UnmarshalMethod · 0.85
UnmarshalMethod · 0.85
UnmarshalMethod · 0.85
UnmarshalMethod · 0.85
UnmarshalMethod · 0.85
UnmarshalMethod · 0.85
UnmarshalMethod · 0.85
UnmarshalMethod · 0.85
UnmarshalMethod · 0.85
UnmarshalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected