Esempio n. 1
0
            public RadioResourceStatus Decode(BitArrayInputStream input)
            {
                RadioResourceStatus status = new RadioResourceStatus();

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

                status.dL_GBR_PRB_usage     = input.readBits(7);
                status.uL_GBR_PRB_usage     = input.readBits(7);
                status.dL_non_GBR_PRB_usage = input.readBits(7);
                status.uL_non_GBR_PRB_usage = input.readBits(7);
                status.dL_Total_PRB_usage   = input.readBits(7);
                status.uL_Total_PRB_usage   = input.readBits(7);
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    status.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);
                        status.iE_Extensions.Add(item);
                    }
                }
                return(status);
            }
Esempio n. 2
0
 public RadioResourceStatus Decode(BitArrayInputStream input)
 {
     RadioResourceStatus status = new RadioResourceStatus();
     status.InitDefaults();
     BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     status.dL_GBR_PRB_usage = input.ReadBits(7);
     status.uL_GBR_PRB_usage = input.ReadBits(7);
     status.dL_non_GBR_PRB_usage = input.ReadBits(7);
     status.uL_non_GBR_PRB_usage = input.ReadBits(7);
     status.dL_Total_PRB_usage = input.ReadBits(7);
     status.uL_Total_PRB_usage = input.ReadBits(7);
     if (stream.Read())
     {
         input.skipUnreadedBits();
         status.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);
             status.iE_Extensions.Add(item);
         }
     }
     return status;
 }