Exemple #1
0
                        public type2_r10_Type Decode(BitArrayInputStream input)
                        {
                            type2_r10_Type type = new type2_r10_Type();

                            type.InitDefaults();
                            switch (input.ReadBits(3))
                            {
                            case 0:
                                type.nrb6_r10 = input.ReadBitString(5);
                                return(type);

                            case 1:
                                type.nrb15_r10 = input.ReadBitString(7);
                                return(type);

                            case 2:
                                type.nrb25_r10 = input.ReadBitString(9);
                                return(type);

                            case 3:
                                type.nrb50_r10 = input.ReadBitString(11);
                                return(type);

                            case 4:
                                type.nrb75_r10 = input.ReadBitString(12);
                                return(type);

                            case 5:
                                type.nrb100_r10 = input.ReadBitString(13);
                                return(type);
                            }
                            throw new Exception(GetType().Name + ":NoChoice had been choose");
                        }
Exemple #2
0
                        public type2_r10_Type Decode(BitArrayInputStream input)
                        {
                            type2_r10_Type type = new type2_r10_Type();
                            type.InitDefaults();
                            switch (input.ReadBits(3))
                            {
                                case 0:
                                    type.nrb6_r10 = input.ReadBitString(5);
                                    return type;

                                case 1:
                                    type.nrb15_r10 = input.ReadBitString(7);
                                    return type;

                                case 2:
                                    type.nrb25_r10 = input.ReadBitString(9);
                                    return type;

                                case 3:
                                    type.nrb50_r10 = input.ReadBitString(11);
                                    return type;

                                case 4:
                                    type.nrb75_r10 = input.ReadBitString(12);
                                    return type;

                                case 5:
                                    type.nrb100_r10 = input.ReadBitString(13);
                                    return type;
                            }
                            throw new Exception(GetType().Name + ":NoChoice had been choose");
                        }