コード例 #1
0
ファイル: ErrorIndication.cs プロジェクト: ouyh18/LteTools
 public ErrorIndication Decode(BitArrayInputStream input)
 {
     ErrorIndication indication = new ErrorIndication();
     indication.InitDefaults();
     input.readBit();
     input.skipUnreadedBits();
     indication.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);
         indication.protocolIEs.Add(item);
     }
     return indication;
 }
コード例 #2
0
            public ErrorIndication Decode(BitArrayInputStream input)
            {
                ErrorIndication indication = new ErrorIndication();

                indication.InitDefaults();
                input.ReadBit();
                input.skipUnreadedBits();
                indication.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);
                    indication.protocolIEs.Add(item);
                }
                return(indication);
            }