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

Method Unmarshal

pkg/ruler/ruler.pb.go:2281–2333  ·  view source on GitHub ↗
(dAtA []byte)

Source from the content-addressed store, hash-verified

2279 return nil
2280}
2281func (m *LivenessCheckRequest) Unmarshal(dAtA []byte) error {
2282 l := len(dAtA)
2283 iNdEx := 0
2284 for iNdEx < l {
2285 preIndex := iNdEx
2286 var wire uint64
2287 for shift := uint(0); ; shift += 7 {
2288 if shift >= 64 {
2289 return ErrIntOverflowRuler
2290 }
2291 if iNdEx >= l {
2292 return io.ErrUnexpectedEOF
2293 }
2294 b := dAtA[iNdEx]
2295 iNdEx++
2296 wire |= uint64(b&0x7F) << shift
2297 if b < 0x80 {
2298 break
2299 }
2300 }
2301 fieldNum := int32(wire >> 3)
2302 wireType := int(wire & 0x7)
2303 if wireType == 4 {
2304 return fmt.Errorf("proto: LivenessCheckRequest: wiretype end group for non-group")
2305 }
2306 if fieldNum <= 0 {
2307 return fmt.Errorf("proto: LivenessCheckRequest: illegal tag %d (wire type %d)", fieldNum, wire)
2308 }
2309 switch fieldNum {
2310 default:
2311 iNdEx = preIndex
2312 skippy, err := skipRuler(dAtA[iNdEx:])
2313 if err != nil {
2314 return err
2315 }
2316 if skippy < 0 {
2317 return ErrInvalidLengthRuler
2318 }
2319 if (iNdEx + skippy) < 0 {
2320 return ErrInvalidLengthRuler
2321 }
2322 if (iNdEx + skippy) > l {
2323 return io.ErrUnexpectedEOF
2324 }
2325 iNdEx += skippy
2326 }
2327 }
2328
2329 if iNdEx > l {
2330 return io.ErrUnexpectedEOF
2331 }
2332 return nil
2333}
2334func (m *LivenessCheckResponse) Unmarshal(dAtA []byte) error {
2335 l := len(dAtA)
2336 iNdEx := 0

Callers 1

XXX_UnmarshalMethod · 0.95

Calls 1

skipRulerFunction · 0.85

Tested by

no test coverage detected