Esempio n. 1
0
 public ServedCell_Information Decode(BitArrayInputStream input)
 {
     ServedCell_Information information = new ServedCell_Information();
     information.InitDefaults();
     BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     input.ReadBit();
     input.skipUnreadedBits();
     information.pCI = input.ReadBits(0x10);
     information.cellId = ECGI.PerDecoder.Instance.Decode(input);
     input.skipUnreadedBits();
     information.tAC = input.readOctetString(2);
     information.broadcastPLMNs = new List<string>();
     int nBits = 3;
     int num5 = input.ReadBits(nBits) + 1;
     for (int i = 0; i < num5; i++)
     {
         input.skipUnreadedBits();
         string item = input.readOctetString(3);
         information.broadcastPLMNs.Add(item);
     }
     information.eUTRA_Mode_Info = EUTRA_Mode_Info.PerDecoder.Instance.Decode(input);
     if (stream.Read())
     {
         input.skipUnreadedBits();
         information.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);
             information.iE_Extensions.Add(field);
         }
     }
     return information;
 }
Esempio n. 2
0
            public ServedCell_Information Decode(BitArrayInputStream input)
            {
                ServedCell_Information information = new ServedCell_Information();

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

                input.readBit();
                input.skipUnreadedBits();
                information.pCI    = input.readBits(0x10);
                information.cellId = ECGI.PerDecoder.Instance.Decode(input);
                input.skipUnreadedBits();
                information.tAC            = input.readOctetString(2);
                information.broadcastPLMNs = new List <string>();
                int nBits = 3;
                int num5  = input.readBits(nBits) + 1;

                for (int i = 0; i < num5; i++)
                {
                    input.skipUnreadedBits();
                    string item = input.readOctetString(3);
                    information.broadcastPLMNs.Add(item);
                }
                information.eUTRA_Mode_Info = EUTRA_Mode_Info.PerDecoder.Instance.Decode(input);
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    information.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);
                        information.iE_Extensions.Add(field);
                    }
                }
                return(information);
            }