示例#1
0
 public ReestablishmentInfo Decode(BitArrayInputStream input)
 {
     ReestablishmentInfo info = new ReestablishmentInfo();
     info.InitDefaults();
     BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     info.sourcePhysCellId = input.ReadBits(9);
     info.targetCellShortMAC_I = input.ReadBitString(0x10);
     if (stream.Read())
     {
         info.additionalReestabInfoList = new List<AdditionalReestabInfo>();
         int nBits = 5;
         int num3 = input.ReadBits(nBits) + 1;
         for (int i = 0; i < num3; i++)
         {
             AdditionalReestabInfo item = AdditionalReestabInfo.PerDecoder.Instance.Decode(input);
             info.additionalReestabInfoList.Add(item);
         }
     }
     return info;
 }
示例#2
0
            public ReestablishmentInfo Decode(BitArrayInputStream input)
            {
                ReestablishmentInfo info = new ReestablishmentInfo();

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

                info.sourcePhysCellId     = input.ReadBits(9);
                info.targetCellShortMAC_I = input.ReadBitString(0x10);
                if (stream.Read())
                {
                    info.additionalReestabInfoList = new List <AdditionalReestabInfo>();
                    int nBits = 5;
                    int num3  = input.ReadBits(nBits) + 1;
                    for (int i = 0; i < num3; i++)
                    {
                        AdditionalReestabInfo item = AdditionalReestabInfo.PerDecoder.Instance.Decode(input);
                        info.additionalReestabInfoList.Add(item);
                    }
                }
                return(info);
            }