Exemple #1
0
            public SpecialSubframe_Info Decode(BitArrayInputStream input)
            {
                SpecialSubframe_Info info = new SpecialSubframe_Info();

                info.InitDefaults();
                BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
                int           nBits  = (input.ReadBit() == 0) ? 4 : 4;

                info.specialSubframePatterns = (SpecialSubframePatterns)input.ReadBits(nBits);
                nBits = 1;
                info.cyclicPrefixDL = (CyclicPrefixDL)input.ReadBits(nBits);
                nBits = 1;
                info.cyclicPrefixUL = (CyclicPrefixUL)input.ReadBits(nBits);
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    info.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);
                        info.iE_Extensions.Add(item);
                    }
                }
                return(info);
            }
Exemple #2
0
 public SpecialSubframe_Info Decode(BitArrayInputStream input)
 {
     SpecialSubframe_Info info = new SpecialSubframe_Info();
     info.InitDefaults();
     BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     int nBits = (input.ReadBit() == 0) ? 4 : 4;
     info.specialSubframePatterns = (SpecialSubframePatterns)input.ReadBits(nBits);
     nBits = 1;
     info.cyclicPrefixDL = (CyclicPrefixDL)input.ReadBits(nBits);
     nBits = 1;
     info.cyclicPrefixUL = (CyclicPrefixUL)input.ReadBits(nBits);
     if (stream.Read())
     {
         input.skipUnreadedBits();
         info.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);
             info.iE_Extensions.Add(item);
         }
     }
     return info;
 }