Exemple #1
0
            public GERAN_Cell_ID Decode(BitArrayInputStream input)
            {
                GERAN_Cell_ID l_id = new GERAN_Cell_ID();

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

                l_id.lAI = LAI.PerDecoder.Decode(input);
                input.skipUnreadedBits();
                l_id.rAC = input.readOctetString(1);
                input.skipUnreadedBits();
                l_id.cI = input.readOctetString(2);
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    l_id.iE_Extensions = new List <ProtocolExtensionField>();
                    int nBits = 0x10;
                    int num5  = input.ReadBits(nBits) + 1;
                    for (int i = 0; i < num5; i++)
                    {
                        ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
                        l_id.iE_Extensions.Add(item);
                    }
                }
                return(l_id);
            }
Exemple #2
0
 public GERAN_Cell_ID Decode(BitArrayInputStream input)
 {
     GERAN_Cell_ID l_id = new GERAN_Cell_ID();
     l_id.InitDefaults();
     BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     l_id.lAI = LAI.PerDecoder.Decode(input);
     input.skipUnreadedBits();
     l_id.rAC = input.readOctetString(1);
     input.skipUnreadedBits();
     l_id.cI = input.readOctetString(2);
     if (stream.Read())
     {
         input.skipUnreadedBits();
         l_id.iE_Extensions = new List<ProtocolExtensionField>();
         int nBits = 0x10;
         int num5 = input.ReadBits(nBits) + 1;
         for (int i = 0; i < num5; i++)
         {
             ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
             l_id.iE_Extensions.Add(item);
         }
     }
     return l_id;
 }