Exemplo n.º 1
0
                        public type01_r10_Type Decode(BitArrayInputStream input)
                        {
                            type01_r10_Type type = new type01_r10_Type();

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

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

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

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

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

                            case 5:
                                type.nrb100_r10 = input.ReadBitString(0x19);
                                return(type);
                            }
                            throw new Exception(GetType().Name + ":NoChoice had been choose");
                        }
Exemplo n.º 2
0
                        public type01_r10_Type Decode(BitArrayInputStream input)
                        {
                            type01_r10_Type type = new type01_r10_Type();
                            type.InitDefaults();
                            switch (input.ReadBits(3))
                            {
                                case 0:
                                    type.nrb6_r10 = input.ReadBitString(6);
                                    return type;

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

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

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

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

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