示例#1
0
文件: Reset.cs 项目: ouyh18/LteTools
 public Reset Decode(BitArrayInputStream input)
 {
     Reset reset = new Reset();
     reset.InitDefaults();
     input.readBit();
     input.skipUnreadedBits();
     reset.protocolIEs = new List<ProtocolIE_Field>();
     const int nBits = 0x10;
     int num5 = input.readBits(nBits);
     for (int i = 0; i < num5; i++)
     {
         ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input);
         reset.protocolIEs.Add(item);
     }
     return reset;
 }
示例#2
0
            public Reset Decode(BitArrayInputStream input)
            {
                Reset reset = new Reset();

                reset.InitDefaults();
                input.ReadBit();
                input.skipUnreadedBits();
                reset.protocolIEs = new List <ProtocolIE_Field>();
                const int nBits = 0x10;
                int       num5  = input.ReadBits(nBits);

                for (int i = 0; i < num5; i++)
                {
                    ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input);
                    reset.protocolIEs.Add(item);
                }
                return(reset);
            }