Esempio n. 1
0
            public SecurityModeComplete_v8a0_IEs Decode(BitArrayInputStream input)
            {
                SecurityModeComplete_v8a0_IEs es = new SecurityModeComplete_v8a0_IEs();

                es.InitDefaults();
                bool          flag   = false;
                BitMaskStream stream = flag ? new BitMaskStream(input, 2) : new BitMaskStream(input, 2);

                if (stream.Read())
                {
                    int nBits = input.ReadBits(8);
                    es.lateNonCriticalExtension = input.readOctetString(nBits);
                }
                if (stream.Read())
                {
                    es.nonCriticalExtension = nonCriticalExtension_Type.PerDecoder.Instance.Decode(input);
                }
                return(es);
            }
Esempio n. 2
0
 public SecurityModeComplete_v8a0_IEs Decode(BitArrayInputStream input)
 {
     SecurityModeComplete_v8a0_IEs es = new SecurityModeComplete_v8a0_IEs();
     es.InitDefaults();
     bool flag = false;
     BitMaskStream stream = flag ? new BitMaskStream(input, 2) : new BitMaskStream(input, 2);
     if (stream.Read())
     {
         int nBits = input.readBits(8);
         es.lateNonCriticalExtension = input.readOctetString(nBits);
     }
     if (stream.Read())
     {
         es.nonCriticalExtension = nonCriticalExtension_Type.PerDecoder.Instance.Decode(input);
     }
     return es;
 }