コード例 #1
0
            public CarrierBandwidthEUTRA Decode(BitArrayInputStream input)
            {
                CarrierBandwidthEUTRA heutra = new CarrierBandwidthEUTRA();

                heutra.InitDefaults();
                BitMaskStream stream = new BitMaskStream(input, 1);
                int           nBits  = 4;

                heutra.dl_Bandwidth = (dl_Bandwidth_Enum)input.readBits(nBits);
                if (stream.Read())
                {
                    nBits = 4;
                    heutra.ul_Bandwidth = (ul_Bandwidth_Enum)input.readBits(nBits);
                }
                return(heutra);
            }
コード例 #2
0
ファイル: CarrierFreq.cs プロジェクト: ouyh18/LteTools
 public CarrierBandwidthEUTRA Decode(BitArrayInputStream input)
 {
     CarrierBandwidthEUTRA heutra = new CarrierBandwidthEUTRA();
     heutra.InitDefaults();
     BitMaskStream stream = new BitMaskStream(input, 1);
     int nBits = 4;
     heutra.dl_Bandwidth = (dl_Bandwidth_Enum)input.readBits(nBits);
     if (stream.Read())
     {
         nBits = 4;
         heutra.ul_Bandwidth = (ul_Bandwidth_Enum)input.readBits(nBits);
     }
     return heutra;
 }