Esempio n. 1
0
                public dedicatedInfoType_Type Decode(BitArrayInputStream input)
                {
                    int nBits;
                    dedicatedInfoType_Type type = new dedicatedInfoType_Type();

                    type.InitDefaults();
                    switch (input.readBits(2))
                    {
                    case 0:
                        nBits = input.readBits(8);
                        type.dedicatedInfoNAS = input.readOctetString(nBits);
                        return(type);

                    case 1:
                        nBits = input.readBits(8);
                        type.dedicatedInfoCDMA2000_1XRTT = input.readOctetString(nBits);
                        return(type);

                    case 2:
                        nBits = input.readBits(8);
                        type.dedicatedInfoCDMA2000_HRPD = input.readOctetString(nBits);
                        return(type);
                    }
                    throw new Exception(GetType().Name + ":NoChoice had been choose");
                }
Esempio n. 2
0
                public dedicatedInfoType_Type Decode(BitArrayInputStream input)
                {
                    int nBits;
                    dedicatedInfoType_Type type = new dedicatedInfoType_Type();
                    type.InitDefaults();
                    switch (input.readBits(2))
                    {
                        case 0:
                            nBits = input.readBits(8);
                            type.dedicatedInfoNAS = input.readOctetString(nBits);
                            return type;

                        case 1:
                            nBits = input.readBits(8);
                            type.dedicatedInfoCDMA2000_1XRTT = input.readOctetString(nBits);
                            return type;

                        case 2:
                            nBits = input.readBits(8);
                            type.dedicatedInfoCDMA2000_HRPD = input.readOctetString(nBits);
                            return type;
                    }
                    throw new Exception(GetType().Name + ":NoChoice had been choose");
                }