Beispiel #1
0
            public COUNTValueExtended Decode(BitArrayInputStream input)
            {
                COUNTValueExtended extended = new COUNTValueExtended();

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

                extended.pDCP_SNExtended = input.ReadBits(15);
                int nBits = input.ReadBits(2) + 1;

                input.skipUnreadedBits();
                extended.hFNModified = input.ReadBits(nBits * 8);
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    extended.iE_Extensions = new List <ProtocolExtensionField>();
                    nBits = 0x10;
                    int num5 = input.ReadBits(nBits) + 1;
                    for (int i = 0; i < num5; i++)
                    {
                        ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
                        extended.iE_Extensions.Add(item);
                    }
                }
                return(extended);
            }
Beispiel #2
0
 public COUNTValueExtended Decode(BitArrayInputStream input)
 {
     COUNTValueExtended extended = new COUNTValueExtended();
     extended.InitDefaults();
     BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     extended.pDCP_SNExtended = input.ReadBits(15);
     int nBits = input.ReadBits(2) + 1;
     input.skipUnreadedBits();
     extended.hFNModified = input.ReadBits(nBits * 8);
     if (stream.Read())
     {
         input.skipUnreadedBits();
         extended.iE_Extensions = new List<ProtocolExtensionField>();
         nBits = 0x10;
         int num5 = input.ReadBits(nBits) + 1;
         for (int i = 0; i < num5; i++)
         {
             ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
             extended.iE_Extensions.Add(item);
         }
     }
     return extended;
 }