Beispiel #1
0
            public TargeteNB_ToSourceeNB_TransparentContainer Decode(BitArrayInputStream input)
            {
                TargeteNB_ToSourceeNB_TransparentContainer container = new TargeteNB_ToSourceeNB_TransparentContainer();

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

                input.skipUnreadedBits();
                int nBits = 0;

                while (true)
                {
                    switch (input.readBit())
                    {
                    case 0:
                        nBits += input.readBits(7);
                        goto Label_00C9;

                    case 1:
                        switch (input.readBit())
                        {
                        case 0:
                            nBits += input.readBits(14);
                            goto Label_00C9;

                        case 1:
                            input.readBits(2);
                            nBits += input.readBits(4) * 0x400;
                            break;
                        }
                        break;
                    }
                }
Label_00C9:
                container.rRC_Container = input.readOctetString(nBits);
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    container.iE_Extensions = new List <ProtocolExtensionField>();
                    int num4 = 0x10;
                    int num5 = input.readBits(num4) + 1;
                    for (int i = 0; i < num5; i++)
                    {
                        ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
                        container.iE_Extensions.Add(item);
                    }
                }
                return(container);
            }
Beispiel #2
0
            public TargeteNB_ToSourceeNB_TransparentContainer Decode(BitArrayInputStream input)
            {
                TargeteNB_ToSourceeNB_TransparentContainer container = new TargeteNB_ToSourceeNB_TransparentContainer();
                container.InitDefaults();
                BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
                input.skipUnreadedBits();
                int nBits = 0;
                while (true)
                {
                    switch (input.readBit())
                    {
                        case 0:
                            nBits += input.readBits(7);
                            goto Label_00C9;

                        case 1:
                            switch (input.readBit())
                            {
                                case 0:
                                    nBits += input.readBits(14);
                                    goto Label_00C9;

                                case 1:
                                    input.readBits(2);
                                    nBits += input.readBits(4) * 0x400;
                                    break;
                            }
                            break;
                    }
                }
                Label_00C9:
                container.rRC_Container = input.readOctetString(nBits);
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    container.iE_Extensions = new List<ProtocolExtensionField>();
                    int num4 = 0x10;
                    int num5 = input.readBits(num4) + 1;
                    for (int i = 0; i < num5; i++)
                    {
                        ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
                        container.iE_Extensions.Add(item);
                    }
                }
                return container;
            }