Exemplo n.º 1
0
 public S_TMSI Decode(BitArrayInputStream input)
 {
     S_TMSI s_tmsi = new S_TMSI();
     s_tmsi.InitDefaults();
     BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     input.skipUnreadedBits();
     s_tmsi.mMEC = input.readOctetString(1);
     input.skipUnreadedBits();
     s_tmsi.m_TMSI = input.readOctetString(4);
     if (stream.Read())
     {
         input.skipUnreadedBits();
         s_tmsi.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);
             s_tmsi.iE_Extensions.Add(item);
         }
     }
     return s_tmsi;
 }