Exemplo n.º 1
0
            public CancelledCellinEAI_Item Decode(BitArrayInputStream input)
            {
                CancelledCellinEAI_Item item = new CancelledCellinEAI_Item();

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

                item.eCGI = EUTRAN_CGI.PerDecoder.Instance.Decode(input);
                int nBits = input.ReadBits(1) + 1;

                input.skipUnreadedBits();
                item.numberOfBroadcasts = input.ReadBits(nBits * 8);
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    item.iE_Extensions = new List <ProtocolExtensionField>();
                    nBits = 0x10;
                    int num5 = input.ReadBits(nBits) + 1;
                    for (int i = 0; i < num5; i++)
                    {
                        ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
                        item.iE_Extensions.Add(field);
                    }
                }
                return(item);
            }
Exemplo n.º 2
0
            public EmergencyAreaID_Cancelled_Item Decode(BitArrayInputStream input)
            {
                EmergencyAreaID_Cancelled_Item item = new EmergencyAreaID_Cancelled_Item();

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

                input.skipUnreadedBits();
                item.emergencyAreaID = input.readOctetString(3);
                input.skipUnreadedBits();
                item.cancelledCellinEAI = new List <CancelledCellinEAI_Item>();
                int nBits = 0x10;
                int num5  = input.readBits(nBits) + 1;

                for (int i = 0; i < num5; i++)
                {
                    CancelledCellinEAI_Item item2 = CancelledCellinEAI_Item.PerDecoder.Instance.Decode(input);
                    item.cancelledCellinEAI.Add(item2);
                }
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    item.iE_Extensions = new List <ProtocolExtensionField>();
                    nBits = 0x10;
                    int num7 = input.readBits(nBits) + 1;
                    for (int j = 0; j < num7; j++)
                    {
                        ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
                        item.iE_Extensions.Add(field);
                    }
                }
                return(item);
            }
Exemplo n.º 3
0
 public CancelledCellinEAI_Item Decode(BitArrayInputStream input)
 {
     CancelledCellinEAI_Item item = new CancelledCellinEAI_Item();
     item.InitDefaults();
     BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     item.eCGI = EUTRAN_CGI.PerDecoder.Instance.Decode(input);
     int nBits = input.ReadBits(1) + 1;
     input.skipUnreadedBits();
     item.numberOfBroadcasts = input.ReadBits(nBits * 8);
     if (stream.Read())
     {
         input.skipUnreadedBits();
         item.iE_Extensions = new List<ProtocolExtensionField>();
         nBits = 0x10;
         int num5 = input.ReadBits(nBits) + 1;
         for (int i = 0; i < num5; i++)
         {
             ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
             item.iE_Extensions.Add(field);
         }
     }
     return item;
 }