MCPcopy Create free account
hub / github.com/dgraph-io/dgraph-benchmarks / Unmarshal

Method Unmarshal

bitmap/pb.pb.go:24034–24102  ·  view source on GitHub ↗
(dAtA []byte)

Source from the content-addressed store, hash-verified

24032 return nil
24033}
24034func (m *UpdateGraphQLSchemaResponse) Unmarshal(dAtA []byte) error {
24035 l := len(dAtA)
24036 iNdEx := 0
24037 for iNdEx < l {
24038 preIndex := iNdEx
24039 var wire uint64
24040 for shift := uint(0); ; shift += 7 {
24041 if shift >= 64 {
24042 return ErrIntOverflowPb
24043 }
24044 if iNdEx >= l {
24045 return io.ErrUnexpectedEOF
24046 }
24047 b := dAtA[iNdEx]
24048 iNdEx++
24049 wire |= uint64(b&0x7F) << shift
24050 if b < 0x80 {
24051 break
24052 }
24053 }
24054 fieldNum := int32(wire >> 3)
24055 wireType := int(wire & 0x7)
24056 if wireType == 4 {
24057 return fmt.Errorf("proto: UpdateGraphQLSchemaResponse: wiretype end group for non-group")
24058 }
24059 if fieldNum <= 0 {
24060 return fmt.Errorf("proto: UpdateGraphQLSchemaResponse: illegal tag %d (wire type %d)", fieldNum, wire)
24061 }
24062 switch fieldNum {
24063 case 1:
24064 if wireType != 0 {
24065 return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
24066 }
24067 m.Uid = 0
24068 for shift := uint(0); ; shift += 7 {
24069 if shift >= 64 {
24070 return ErrIntOverflowPb
24071 }
24072 if iNdEx >= l {
24073 return io.ErrUnexpectedEOF
24074 }
24075 b := dAtA[iNdEx]
24076 iNdEx++
24077 m.Uid |= uint64(b&0x7F) << shift
24078 if b < 0x80 {
24079 break
24080 }
24081 }
24082 default:
24083 iNdEx = preIndex
24084 skippy, err := skipPb(dAtA[iNdEx:])
24085 if err != nil {
24086 return err
24087 }
24088 if (skippy < 0) || (iNdEx+skippy) < 0 {
24089 return ErrInvalidLengthPb
24090 }
24091 if (iNdEx + skippy) > l {

Callers 1

XXX_UnmarshalMethod · 0.95

Calls 1

skipPbFunction · 0.85

Tested by

no test coverage detected