Esempio n. 1
0
        public Soyo.Proto.ProtoTestBase Merge(ProtoReader input, Soyo.Proto.ProtoTestBase value)
        {
            int oldLimit = input.ReadClassBegin();

            while (input.HasField)
            {
                switch (input.FieldId)
                {
                case 1: value.byteValue = input.Merge(value.byteValue); break;

                case 2: value.sbyteValue = input.Merge(value.sbyteValue); break;

                case 3: value.shortValue = input.Merge(value.shortValue); break;

                case 4: value.ushortValue = input.Merge(value.ushortValue); break;

                case 5: value.intValue = input.MergeSign(value.intValue); break;

                case 6: value.uintValue = input.MergeFixed(value.uintValue); break;

                case 7: value.longValue = input.MergeSign(value.longValue); break;

                case 8: value.ulongValue = input.MergeFixed(value.ulongValue); break;

                case 9: value.floatValue = input.Merge(value.floatValue); break;

                case 10: value.doubleValue = input.Merge(value.doubleValue); break;

                case 11: value.enumValue = (Soyo.Proto.EnumTest)input.Merge((int)value.enumValue); break;

                case 12: value.stringValue = input.Merge(value.stringValue); break;

                case 13: value.bufferValue = input.Merge(value.bufferValue); break;

                case 14: value.byteArrayValue = input.Merge(value.byteArrayValue); break;

                case 15: value.byteNullValue = input.Merge(value.byteNullValue); break;

                case 16: value.sbyteNullValue = input.Merge(value.sbyteNullValue); break;

                case 17: value.shortNullValue = input.Merge(value.shortNullValue); break;

                case 18: value.ushortNullValue = input.Merge(value.ushortNullValue); break;

                case 19: value.intNullValue = input.Merge(value.intNullValue); break;

                case 20: value.uintNullValue = input.Merge(value.uintNullValue); break;

                case 21: value.longNullValue = input.Merge(value.longNullValue); break;

                case 22: value.ulongNullValue = input.Merge(value.ulongNullValue); break;

                case 23: value.floatNullValue = input.Merge(value.floatNullValue); break;

                case 24: value.doubleNullValue = input.Merge(value.doubleNullValue); break;

                case 25: value.bufferNullValue = input.Merge(value.bufferNullValue); break;

                case 26: value.boolListValue = input.Merge(value.boolListValue); break;

                case 27: value.byteListValue = input.Merge(value.byteListValue); break;

                case 28: value.sbyteListValue = input.Merge(value.sbyteListValue); break;

                case 29: value.shortListValue = input.Merge(value.shortListValue); break;

                case 30: value.ushortListValue = input.Merge(value.ushortListValue); break;

                case 31: value.intListValue = input.Merge(value.intListValue); break;

                case 32: value.uintListValue = input.Merge(value.uintListValue); break;

                case 33: value.longListValue = input.Merge(value.longListValue); break;

                case 34: value.ulongListValue = input.Merge(value.ulongListValue); break;

                case 35: value.floatListValue = input.Merge(value.floatListValue); break;

                case 36: value.doubleListValue = input.Merge(value.doubleListValue); break;

                case 37: value.stringListValue = input.Merge(value.stringListValue); break;

                case 38: value.bufferListValue = input.Merge(value.bufferListValue); break;

                case 39: value.byteArrayListValue = input.Merge(value.byteArrayListValue); break;

                case 40: value.boolValue = input.Merge(value.boolValue); break;

                case 41: value.boolNullValue = input.Merge(value.boolNullValue); break;

                case 42: value.uintUintDictionary = input.Merge(value.uintUintDictionary); break;

                default: input.SkipField(); break;
                }
            }
            input.ReadClassEnd(oldLimit);
            return(value);
        }