예제 #1
0
            public ForbiddenTAs_Item Decode(BitArrayInputStream input)
            {
                ForbiddenTAs_Item item = new ForbiddenTAs_Item();

                item.InitDefaults();
                BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);

                input.skipUnreadedBits();
                item.pLMN_Identity = input.readOctetString(3);
                item.forbiddenTACs = new List <string>();
                int nBits = 12;
                int num5  = input.ReadBits(nBits) + 1;

                for (int i = 0; i < num5; i++)
                {
                    input.skipUnreadedBits();
                    string str = input.readOctetString(2);
                    item.forbiddenTACs.Add(str);
                }
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    item.iE_Extensions = new List <ProtocolExtensionField>();
                    nBits = 0x10;
                    int num7 = input.ReadBits(nBits) + 1;
                    for (int j = 0; j < num7; j++)
                    {
                        ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
                        item.iE_Extensions.Add(field);
                    }
                }
                return(item);
            }
예제 #2
0
 public ForbiddenTAs_Item Decode(BitArrayInputStream input)
 {
     ForbiddenTAs_Item item = new ForbiddenTAs_Item();
     item.InitDefaults();
     BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     input.skipUnreadedBits();
     item.pLMN_Identity = input.readOctetString(3);
     item.forbiddenTACs = new List<string>();
     int nBits = 12;
     int num5 = input.readBits(nBits) + 1;
     for (int i = 0; i < num5; i++)
     {
         input.skipUnreadedBits();
         string str = input.readOctetString(2);
         item.forbiddenTACs.Add(str);
     }
     if (stream.Read())
     {
         input.skipUnreadedBits();
         item.iE_Extensions = new List<ProtocolExtensionField>();
         nBits = 0x10;
         int num7 = input.readBits(nBits) + 1;
         for (int j = 0; j < num7; j++)
         {
             ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
             item.iE_Extensions.Add(field);
         }
     }
     return item;
 }
예제 #3
0
            public HandoverRestrictionList Decode(BitArrayInputStream input)
            {
                int num4;
                HandoverRestrictionList list = new HandoverRestrictionList();

                list.InitDefaults();
                BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 5) : new BitMaskStream(input, 5);

                input.skipUnreadedBits();
                list.servingPLMN = input.readOctetString(3);
                if (stream.Read())
                {
                    list.equivalentPLMNs = new List <string>();
                    num4 = 4;
                    int num5 = input.readBits(num4) + 1;
                    for (int i = 0; i < num5; i++)
                    {
                        input.skipUnreadedBits();
                        string str = input.readOctetString(3);
                        list.equivalentPLMNs.Add(str);
                    }
                }
                if (stream.Read())
                {
                    list.forbiddenTAs = new List <ForbiddenTAs_Item>();
                    num4 = 4;
                    int num7 = input.readBits(num4) + 1;
                    for (int j = 0; j < num7; j++)
                    {
                        ForbiddenTAs_Item item = ForbiddenTAs_Item.PerDecoder.Instance.Decode(input);
                        list.forbiddenTAs.Add(item);
                    }
                }
                if (stream.Read())
                {
                    list.forbiddenLAs = new List <ForbiddenLAs_Item>();
                    num4 = 4;
                    int num9 = input.readBits(num4) + 1;
                    for (int k = 0; k < num9; k++)
                    {
                        ForbiddenLAs_Item item2 = ForbiddenLAs_Item.PerDecoder.Instance.Decode(input);
                        list.forbiddenLAs.Add(item2);
                    }
                }
                if (stream.Read())
                {
                    num4 = (input.readBit() == 0) ? 3 : 3;
                    list.forbiddenInterRATs = (ForbiddenInterRATs)input.readBits(num4);
                }
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    list.iE_Extensions = new List <ProtocolExtensionField>();
                    num4 = 0x10;
                    int num11 = input.readBits(num4) + 1;
                    for (int m = 0; m < num11; m++)
                    {
                        ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
                        list.iE_Extensions.Add(field);
                    }
                }
                return(list);
            }