Exemplo n.º 1
0
            public CellBasedMDT Decode(BitArrayInputStream input)
            {
                CellBasedMDT dmdt = new CellBasedMDT();

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

                dmdt.cellIdListforMDT = new List <ECGI>();
                int nBits = 5;
                int num5  = input.readBits(nBits) + 1;

                for (int i = 0; i < num5; i++)
                {
                    ECGI item = ECGI.PerDecoder.Instance.Decode(input);
                    dmdt.cellIdListforMDT.Add(item);
                }
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    dmdt.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);
                        dmdt.iE_Extensions.Add(field);
                    }
                }
                return(dmdt);
            }
Exemplo n.º 2
0
            public static List <ECGI> Value(BitArrayInputStream input)
            {
                input.skipUnreadedBits();
                List <ECGI> list  = new List <ECGI>();
                int         nBits = 8;
                int         num2  = input.ReadBits(nBits) + 1;

                for (int i = 0; i < num2; i++)
                {
                    ECGI item = ECGI.PerDecoder.Instance.Decode(input);
                    list.Add(item);
                }
                return(list);
            }
Exemplo n.º 3
0
            public ECGI Decode(BitArrayInputStream input)
            {
                ECGI ecgi = new ECGI();

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

                input.skipUnreadedBits();
                ecgi.pLMN_Identity        = input.readOctetString(3);
                ecgi.eUTRANcellIdentifier = input.ReadBitString(0x1c);
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    ecgi.iE_Extensions = new List <ProtocolExtensionField>();
                    const int nBits = 0x10;
                    int       num5  = input.ReadBits(nBits) + 1;
                    for (int i = 0; i < num5; i++)
                    {
                        ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
                        ecgi.iE_Extensions.Add(item);
                    }
                }
                return(ecgi);
            }
Exemplo n.º 4
0
 public ECGI Decode(BitArrayInputStream input)
 {
     ECGI ecgi = new ECGI();
     ecgi.InitDefaults();
     BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     input.skipUnreadedBits();
     ecgi.pLMN_Identity = input.readOctetString(3);
     ecgi.eUTRANcellIdentifier = input.readBitString(0x1c);
     if (stream.Read())
     {
         input.skipUnreadedBits();
         ecgi.iE_Extensions = new List<ProtocolExtensionField>();
         const int nBits = 0x10;
         int num5 = input.readBits(nBits) + 1;
         for (int i = 0; i < num5; i++)
         {
             ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
             ecgi.iE_Extensions.Add(item);
         }
     }
     return ecgi;
 }