Example #1
0
            public MeasResultCDMA2000 Decode(BitArrayInputStream input)
            {
                MeasResultCDMA2000 tcdma = new MeasResultCDMA2000();

                tcdma.InitDefaults();
                BitMaskStream stream = new BitMaskStream(input, 1);

                tcdma.physCellId = input.ReadBits(9);
                if (stream.Read())
                {
                    tcdma.cgi_Info = CellGlobalIdCDMA2000.PerDecoder.Instance.Decode(input);
                }
                tcdma.measResult = measResult_Type.PerDecoder.Instance.Decode(input);
                return(tcdma);
            }
Example #2
0
            public MeasResultsCDMA2000 Decode(BitArrayInputStream input)
            {
                MeasResultsCDMA2000 scdma = new MeasResultsCDMA2000();

                scdma.InitDefaults();
                scdma.preRegistrationStatusHRPD = input.ReadBit() == 1;
                scdma.measResultListCDMA2000    = new List <MeasResultCDMA2000>();
                int nBits = 3;
                int num3  = input.ReadBits(nBits) + 1;

                for (int i = 0; i < num3; i++)
                {
                    MeasResultCDMA2000 item = MeasResultCDMA2000.PerDecoder.Instance.Decode(input);
                    scdma.measResultListCDMA2000.Add(item);
                }
                return(scdma);
            }
Example #3
0
 public MeasResultCDMA2000 Decode(BitArrayInputStream input)
 {
     MeasResultCDMA2000 tcdma = new MeasResultCDMA2000();
     tcdma.InitDefaults();
     BitMaskStream stream = new BitMaskStream(input, 1);
     tcdma.physCellId = input.readBits(9);
     if (stream.Read())
     {
         tcdma.cgi_Info = CellGlobalIdCDMA2000.PerDecoder.Instance.Decode(input);
     }
     tcdma.measResult = measResult_Type.PerDecoder.Instance.Decode(input);
     return tcdma;
 }