예제 #1
0
 public AS_SecurityInformation Decode(BitArrayInputStream input)
 {
     AS_SecurityInformation information = new AS_SecurityInformation();
     information.InitDefaults();
     BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     input.skipUnreadedBits();
     information.key_eNodeB_star = input.readBitString(0x100);
     information.nextHopChainingCount = input.readBits(3);
     if (stream.Read())
     {
         input.skipUnreadedBits();
         information.iE_Extensions = new List<ProtocolExtensionField>();
         int nBits = 0x10;
         int num5 = input.readBits(nBits) + 1;
         for (int i = 0; i < num5; i++)
         {
             ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
             information.iE_Extensions.Add(item);
         }
     }
     return information;
 }
예제 #2
0
            public AS_SecurityInformation Decode(BitArrayInputStream input)
            {
                AS_SecurityInformation information = new AS_SecurityInformation();

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

                input.skipUnreadedBits();
                information.key_eNodeB_star      = input.readBitString(0x100);
                information.nextHopChainingCount = input.readBits(3);
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    information.iE_Extensions = new List <ProtocolExtensionField>();
                    int nBits = 0x10;
                    int num5  = input.readBits(nBits) + 1;
                    for (int i = 0; i < num5; i++)
                    {
                        ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
                        information.iE_Extensions.Add(item);
                    }
                }
                return(information);
            }