Exemplo n.º 1
0
            public SI_OrPSI_GERAN Decode(BitArrayInputStream input)
            {
                int            num2;
                int            num4;
                int            num5;
                string         str;
                int            num;
                SI_OrPSI_GERAN rpsi_geran = new SI_OrPSI_GERAN();

                rpsi_geran.InitDefaults();
                switch (input.readBits(1))
                {
                case 0:
                    rpsi_geran.si = new List <string>();
                    num2          = 4;
                    num4          = input.readBits(num2) + 1;
                    for (num5 = 0; num5 < num4; num5++)
                    {
                        num = input.readBits(5);
                        str = input.readOctetString(num + 1);
                        rpsi_geran.si.Add(str);
                    }
                    return(rpsi_geran);

                case 1:
                    rpsi_geran.psi = new List <string>();
                    num2           = 4;
                    num4           = input.readBits(num2) + 1;
                    for (num5 = 0; num5 < num4; num5++)
                    {
                        num = input.readBits(5);
                        str = input.readOctetString(num + 1);
                        rpsi_geran.psi.Add(str);
                    }
                    return(rpsi_geran);
                }
                throw new Exception(GetType().Name + ":NoChoice had been choose");
            }
Exemplo n.º 2
0
            public SI_OrPSI_GERAN Decode(BitArrayInputStream input)
            {
                int num2;
                int num4;
                int num5;
                string str;
                int num;
                SI_OrPSI_GERAN rpsi_geran = new SI_OrPSI_GERAN();
                rpsi_geran.InitDefaults();
                switch (input.readBits(1))
                {
                    case 0:
                        rpsi_geran.si = new List<string>();
                        num2 = 4;
                        num4 = input.readBits(num2) + 1;
                        for (num5 = 0; num5 < num4; num5++)
                        {
                            num = input.readBits(5);
                            str = input.readOctetString(num + 1);
                            rpsi_geran.si.Add(str);
                        }
                        return rpsi_geran;

                    case 1:
                        rpsi_geran.psi = new List<string>();
                        num2 = 4;
                        num4 = input.readBits(num2) + 1;
                        for (num5 = 0; num5 < num4; num5++)
                        {
                            num = input.readBits(5);
                            str = input.readOctetString(num + 1);
                            rpsi_geran.psi.Add(str);
                        }
                        return rpsi_geran;
                }
                throw new Exception(GetType().Name + ":NoChoice had been choose");
            }