예제 #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);
            }
예제 #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);
            }
예제 #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);
            }
예제 #4
0
파일: CGI.cs 프로젝트: ouyh18/LteTools
 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;
 }