Пример #1
0
            public PrivateIE_ID Decode(BitArrayInputStream input)
            {
                PrivateIE_ID eie_id = new PrivateIE_ID();

                eie_id.InitDefaults();
                switch (input.ReadBits(1))
                {
                case 0:
                {
                    int num4 = input.ReadBits(1) + 1;
                    input.skipUnreadedBits();
                    eie_id.local = input.ReadBits(num4 * 8);
                    return(eie_id);
                }

                case 1:
                    return(eie_id);
                }
                throw new Exception(GetType().Name + ":NoChoice had been choose");
            }
Пример #2
0
 public PrivateIE_ID Decode(BitArrayInputStream input)
 {
     PrivateIE_ID eie_id = new PrivateIE_ID();
     eie_id.InitDefaults();
     switch (input.ReadBits(1))
     {
         case 0:
             {
                 int num4 = input.ReadBits(1) + 1;
                 input.skipUnreadedBits();
                 eie_id.local = input.ReadBits(num4 * 8);
                 return eie_id;
             }
         case 1:
             return eie_id;
     }
     throw new Exception(GetType().Name + ":NoChoice had been choose");
 }