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

Function skipQuery

pkg/querier/tripperware/query.pb.go:5557–5661  ·  view source on GitHub ↗
(dAtA []byte)

Source from the content-addressed store, hash-verified

5555 return nil
5556}
5557func skipQuery(dAtA []byte) (n int, err error) {
5558 l := len(dAtA)
5559 iNdEx := 0
5560 for iNdEx < l {
5561 var wire uint64
5562 for shift := uint(0); ; shift += 7 {
5563 if shift >= 64 {
5564 return 0, ErrIntOverflowQuery
5565 }
5566 if iNdEx >= l {
5567 return 0, io.ErrUnexpectedEOF
5568 }
5569 b := dAtA[iNdEx]
5570 iNdEx++
5571 wire |= (uint64(b) & 0x7F) << shift
5572 if b < 0x80 {
5573 break
5574 }
5575 }
5576 wireType := int(wire & 0x7)
5577 switch wireType {
5578 case 0:
5579 for shift := uint(0); ; shift += 7 {
5580 if shift >= 64 {
5581 return 0, ErrIntOverflowQuery
5582 }
5583 if iNdEx >= l {
5584 return 0, io.ErrUnexpectedEOF
5585 }
5586 iNdEx++
5587 if dAtA[iNdEx-1] < 0x80 {
5588 break
5589 }
5590 }
5591 return iNdEx, nil
5592 case 1:
5593 iNdEx += 8
5594 return iNdEx, nil
5595 case 2:
5596 var length int
5597 for shift := uint(0); ; shift += 7 {
5598 if shift >= 64 {
5599 return 0, ErrIntOverflowQuery
5600 }
5601 if iNdEx >= l {
5602 return 0, io.ErrUnexpectedEOF
5603 }
5604 b := dAtA[iNdEx]
5605 iNdEx++
5606 length |= (int(b) & 0x7F) << shift
5607 if b < 0x80 {
5608 break
5609 }
5610 }
5611 if length < 0 {
5612 return 0, ErrInvalidLengthQuery
5613 }
5614 iNdEx += length

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