MCPcopy Create free account
hub / github.com/cortexproject/cortex / skipQuerier

Function skipQuerier

pkg/distributed_execution/querierpb/querier.pb.go:2442–2546  ·  view source on GitHub ↗
(dAtA []byte)

Source from the content-addressed store, hash-verified

2440 return nil
2441}
2442func skipQuerier(dAtA []byte) (n int, err error) {
2443 l := len(dAtA)
2444 iNdEx := 0
2445 for iNdEx < l {
2446 var wire uint64
2447 for shift := uint(0); ; shift += 7 {
2448 if shift >= 64 {
2449 return 0, ErrIntOverflowQuerier
2450 }
2451 if iNdEx >= l {
2452 return 0, io.ErrUnexpectedEOF
2453 }
2454 b := dAtA[iNdEx]
2455 iNdEx++
2456 wire |= (uint64(b) & 0x7F) << shift
2457 if b < 0x80 {
2458 break
2459 }
2460 }
2461 wireType := int(wire & 0x7)
2462 switch wireType {
2463 case 0:
2464 for shift := uint(0); ; shift += 7 {
2465 if shift >= 64 {
2466 return 0, ErrIntOverflowQuerier
2467 }
2468 if iNdEx >= l {
2469 return 0, io.ErrUnexpectedEOF
2470 }
2471 iNdEx++
2472 if dAtA[iNdEx-1] < 0x80 {
2473 break
2474 }
2475 }
2476 return iNdEx, nil
2477 case 1:
2478 iNdEx += 8
2479 return iNdEx, nil
2480 case 2:
2481 var length int
2482 for shift := uint(0); ; shift += 7 {
2483 if shift >= 64 {
2484 return 0, ErrIntOverflowQuerier
2485 }
2486 if iNdEx >= l {
2487 return 0, io.ErrUnexpectedEOF
2488 }
2489 b := dAtA[iNdEx]
2490 iNdEx++
2491 length |= (int(b) & 0x7F) << shift
2492 if b < 0x80 {
2493 break
2494 }
2495 }
2496 if length < 0 {
2497 return 0, ErrInvalidLengthQuerier
2498 }
2499 iNdEx += length

Callers 7

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