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

Method Unmarshal

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

Source from the content-addressed store, hash-verified

16873 return nil
16874}
16875func (m *Mutations) Unmarshal(dAtA []byte) error {
16876 l := len(dAtA)
16877 iNdEx := 0
16878 for iNdEx < l {
16879 preIndex := iNdEx
16880 var wire uint64
16881 for shift := uint(0); ; shift += 7 {
16882 if shift >= 64 {
16883 return ErrIntOverflowPb
16884 }
16885 if iNdEx >= l {
16886 return io.ErrUnexpectedEOF
16887 }
16888 b := dAtA[iNdEx]
16889 iNdEx++
16890 wire |= uint64(b&0x7F) << shift
16891 if b < 0x80 {
16892 break
16893 }
16894 }
16895 fieldNum := int32(wire >> 3)
16896 wireType := int(wire & 0x7)
16897 if wireType == 4 {
16898 return fmt.Errorf("proto: Mutations: wiretype end group for non-group")
16899 }
16900 if fieldNum <= 0 {
16901 return fmt.Errorf("proto: Mutations: illegal tag %d (wire type %d)", fieldNum, wire)
16902 }
16903 switch fieldNum {
16904 case 1:
16905 if wireType != 0 {
16906 return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
16907 }
16908 m.GroupId = 0
16909 for shift := uint(0); ; shift += 7 {
16910 if shift >= 64 {
16911 return ErrIntOverflowPb
16912 }
16913 if iNdEx >= l {
16914 return io.ErrUnexpectedEOF
16915 }
16916 b := dAtA[iNdEx]
16917 iNdEx++
16918 m.GroupId |= uint32(b&0x7F) << shift
16919 if b < 0x80 {
16920 break
16921 }
16922 }
16923 case 2:
16924 if wireType != 0 {
16925 return fmt.Errorf("proto: wrong wireType = %d for field StartTs", wireType)
16926 }
16927 m.StartTs = 0
16928 for shift := uint(0); ; shift += 7 {
16929 if shift >= 64 {
16930 return ErrIntOverflowPb
16931 }
16932 if iNdEx >= l {

Callers 1

XXX_UnmarshalMethod · 0.95

Calls 3

Mutations_DropOpTypeAlias · 0.85
skipPbFunction · 0.85
UnmarshalMethod · 0.45

Tested by

no test coverage detected