コード例 #1
0
                        public eventId_Type Decode(BitArrayInputStream input)
                        {
                            eventId_Type type = new eventId_Type();

                            type.InitDefaults();
                            input.readBit();
                            switch (input.readBits(1))
                            {
                            case 0:
                                type.eventB1 = eventB1_Type.PerDecoder.Instance.Decode(input);
                                return(type);

                            case 1:
                                type.eventB2 = eventB2_Type.PerDecoder.Instance.Decode(input);
                                return(type);
                            }
                            throw new Exception(GetType().Name + ":NoChoice had been choose");
                        }
コード例 #2
0
                        public eventId_Type Decode(BitArrayInputStream input)
                        {
                            eventId_Type type = new eventId_Type();

                            type.InitDefaults();
                            bool flag = input.readBit() != 0;

                            switch (input.readBits(3))
                            {
                            case 0:
                                type.eventA1 = eventA1_Type.PerDecoder.Instance.Decode(input);
                                return(type);

                            case 1:
                                type.eventA2 = eventA2_Type.PerDecoder.Instance.Decode(input);
                                return(type);

                            case 2:
                                type.eventA3 = eventA3_Type.PerDecoder.Instance.Decode(input);
                                return(type);

                            case 3:
                                type.eventA4 = eventA4_Type.PerDecoder.Instance.Decode(input);
                                return(type);

                            case 4:
                                type.eventA5 = eventA5_Type.PerDecoder.Instance.Decode(input);
                                return(type);

                            case 5:
                                if (flag)
                                {
                                    type.eventA6_r10 = eventA6_r10_Type.PerDecoder.Instance.Decode(input);
                                }
                                return(type);
                            }
                            throw new Exception(GetType().Name + ":NoChoice had been choose");
                        }
コード例 #3
0
ファイル: ReportConfig.cs プロジェクト: ouyh18/LtePlatform
                        public eventId_Type Decode(BitArrayInputStream input)
                        {
                            eventId_Type type = new eventId_Type();
                            type.InitDefaults();
                            input.ReadBit();
                            switch (input.ReadBits(1))
                            {
                                case 0:
                                    type.eventB1 = eventB1_Type.PerDecoder.Instance.Decode(input);
                                    return type;

                                case 1:
                                    type.eventB2 = eventB2_Type.PerDecoder.Instance.Decode(input);
                                    return type;
                            }
                            throw new Exception(GetType().Name + ":NoChoice had been choose");
                        }
コード例 #4
0
ファイル: ReportConfig.cs プロジェクト: ouyh18/LtePlatform
                        public eventId_Type Decode(BitArrayInputStream input)
                        {
                            eventId_Type type = new eventId_Type();
                            type.InitDefaults();
                            bool flag = input.ReadBit() != 0;
                            switch (input.ReadBits(3))
                            {
                                case 0:
                                    type.eventA1 = eventA1_Type.PerDecoder.Instance.Decode(input);
                                    return type;

                                case 1:
                                    type.eventA2 = eventA2_Type.PerDecoder.Instance.Decode(input);
                                    return type;

                                case 2:
                                    type.eventA3 = eventA3_Type.PerDecoder.Instance.Decode(input);
                                    return type;

                                case 3:
                                    type.eventA4 = eventA4_Type.PerDecoder.Instance.Decode(input);
                                    return type;

                                case 4:
                                    type.eventA5 = eventA5_Type.PerDecoder.Instance.Decode(input);
                                    return type;

                                case 5:
                                    if (flag)
                                    {
                                        type.eventA6_r10 = eventA6_r10_Type.PerDecoder.Instance.Decode(input);
                                    }
                                    return type;
                            }
                            throw new Exception(GetType().Name + ":NoChoice had been choose");
                        }