예제 #1
0
파일: DRB.cs 프로젝트: ouyh18/LteTools
 public DRB_CountInfo Decode(BitArrayInputStream input)
 {
     DRB_CountInfo info = new DRB_CountInfo();
     info.InitDefaults();
     info.drb_Identity = input.readBits(5) + 1;
     info.count_Uplink = input.readBits(0x20);
     info.count_Downlink = input.readBits(0x20);
     return info;
 }
예제 #2
0
파일: DRB.cs 프로젝트: xuhaoa/LtePlatform
            public DRB_CountInfo Decode(BitArrayInputStream input)
            {
                DRB_CountInfo info = new DRB_CountInfo();

                info.InitDefaults();
                info.drb_Identity   = input.ReadBits(5) + 1;
                info.count_Uplink   = input.ReadBits(0x20);
                info.count_Downlink = input.ReadBits(0x20);
                return(info);
            }
예제 #3
0
            public CounterCheckResponse_r8_IEs Decode(BitArrayInputStream input)
            {
                CounterCheckResponse_r8_IEs es = new CounterCheckResponse_r8_IEs();

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

                es.drb_CountInfoList = new List <DRB_CountInfo>();
                const int nBits = 4;
                int       num3  = input.readBits(nBits);

                for (int i = 0; i < num3; i++)
                {
                    DRB_CountInfo item = DRB_CountInfo.PerDecoder.Instance.Decode(input);
                    es.drb_CountInfoList.Add(item);
                }
                if (stream.Read())
                {
                    es.nonCriticalExtension = CounterCheckResponse_v8a0_IEs.PerDecoder.Instance.Decode(input);
                }
                return(es);
            }