예제 #1
0
            public ResetType Decode(BitArrayInputStream input)
            {
                int       num4;
                ResetType type = new ResetType();

                type.InitDefaults();
                input.ReadBit();
                switch (input.ReadBits(1))
                {
                case 0:
                    num4 = 1;
                    type.s1_Interface = (ResetAll)input.ReadBits(num4);
                    return(type);

                case 1:
                {
                    input.skipUnreadedBits();
                    type.partOfS1_Interface = new List <ProtocolIE_Field>();
                    num4 = 8;
                    int num6 = input.ReadBits(num4) + 1;
                    for (int i = 0; i < num6; i++)
                    {
                        ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input);
                        type.partOfS1_Interface.Add(item);
                    }
                    return(type);
                }
                }
                throw new Exception(GetType().Name + ":NoChoice had been choose");
            }
예제 #2
0
            public ENB_StatusTransfer_TransparentContainer Decode(BitArrayInputStream input)
            {
                ENB_StatusTransfer_TransparentContainer container = new ENB_StatusTransfer_TransparentContainer();

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

                input.skipUnreadedBits();
                container.bearers_SubjectToStatusTransferList = new List <ProtocolIE_Field>();
                int nBits = 8;
                int num5  = input.readBits(nBits) + 1;

                for (int i = 0; i < num5; i++)
                {
                    ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input);
                    container.bearers_SubjectToStatusTransferList.Add(item);
                }
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    container.iE_Extensions = new List <ProtocolExtensionField>();
                    nBits = 0x10;
                    int num7 = input.readBits(nBits) + 1;
                    for (int j = 0; j < num7; j++)
                    {
                        ProtocolExtensionField field2 = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
                        container.iE_Extensions.Add(field2);
                    }
                }
                return(container);
            }
예제 #3
0
            public ProtocolIE_Field Decode(BitArrayInputStream input)
            {
                ProtocolIE_Field field = new ProtocolIE_Field();

                field.InitDefaults();
                int num4 = input.ReadBits(1) + 1;

                input.skipUnreadedBits();
                field.id          = input.ReadBits(num4 * 8);
                num4              = 2;
                field.criticality = (Criticality)input.ReadBits(num4);
                input.skipUnreadedBits();
                int nBits = 0;

                while (true)
                {
                    switch (input.ReadBit())
                    {
                    case 0:
                        nBits += input.ReadBits(7);
                        goto Label_00DD;

                    case 1:
                        switch (input.ReadBit())
                        {
                        case 0:
                            nBits += input.ReadBits(14);
                            goto Label_00DD;

                        case 1:
                            input.ReadBits(2);
                            nBits += input.ReadBits(4) * 0x400;
                            break;
                        }
                        break;
                    }
                }
Label_00DD:
                long num3 = input.Position;

                try
                {
                    field.value = S1AP_PROTOCOL_IES.Switcher(field.id, "Value", input);
                    input.skipUnreadedBits();
                }
                catch (Exception)
                {
                    input.skipUnreadedBits();
                    input.Position = num3;
                    field.value    = input.readOctetString(nBits);
                }
                if (input.Position != (num3 + nBits))
                {
                    input.Position = num3 + nBits;
                }
                return(field);
            }
예제 #4
0
            public ProtocolIE_Field Decode(BitArrayInputStream input)
            {
                ProtocolIE_Field field = new ProtocolIE_Field();
                field.InitDefaults();
                int num4 = input.ReadBits(1) + 1;
                input.skipUnreadedBits();
                field.id = input.ReadBits(num4 * 8);
                num4 = 2;
                field.criticality = (Criticality)input.ReadBits(num4);
                input.skipUnreadedBits();
                int nBits = 0;
                while (true)
                {
                    switch (input.ReadBit())
                    {
                        case 0:
                            nBits += input.ReadBits(7);
                            goto Label_00DD;

                        case 1:
                            switch (input.ReadBit())
                            {
                                case 0:
                                    nBits += input.ReadBits(14);
                                    goto Label_00DD;

                                case 1:
                                    input.ReadBits(2);
                                    nBits += input.ReadBits(4) * 0x400;
                                    break;
                            }
                            break;
                    }
                }
            Label_00DD:
                long num3 = input.Position;
                try
                {
                    field.value = S1AP_PROTOCOL_IES.Switcher(field.id, "Value", input);
                    input.skipUnreadedBits();
                }
                catch (Exception)
                {
                    input.skipUnreadedBits();
                    input.Position = num3;
                    field.value = input.readOctetString(nBits);
                }
                if (input.Position != (num3 + nBits))
                {
                    input.Position = num3 + nBits;
                }
                return field;
            }
예제 #5
0
            public UEContextReleaseComplete Decode(BitArrayInputStream input)
            {
                UEContextReleaseComplete complete = new UEContextReleaseComplete();

                complete.InitDefaults();
                input.ReadBit();
                input.skipUnreadedBits();
                complete.protocolIEs = new List <ProtocolIE_Field>();
                const int nBits = 0x10;
                int       num5  = input.ReadBits(nBits);

                for (int i = 0; i < num5; i++)
                {
                    ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input);
                    complete.protocolIEs.Add(item);
                }
                return(complete);
            }
예제 #6
0
            public WriteReplaceWarningRequest Decode(BitArrayInputStream input)
            {
                WriteReplaceWarningRequest request = new WriteReplaceWarningRequest();

                request.InitDefaults();
                input.ReadBit();
                input.skipUnreadedBits();
                request.protocolIEs = new List <ProtocolIE_Field>();
                const int nBits = 0x10;
                int       num5  = input.ReadBits(nBits);

                for (int i = 0; i < num5; i++)
                {
                    ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input);
                    request.protocolIEs.Add(item);
                }
                return(request);
            }
예제 #7
0
            public MMEConfigurationUpdate Decode(BitArrayInputStream input)
            {
                MMEConfigurationUpdate update = new MMEConfigurationUpdate();

                update.InitDefaults();
                input.readBit();
                input.skipUnreadedBits();
                update.protocolIEs = new List <ProtocolIE_Field>();
                const int nBits = 0x10;
                int       num5  = input.readBits(nBits);

                for (int i = 0; i < num5; i++)
                {
                    ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input);
                    update.protocolIEs.Add(item);
                }
                return(update);
            }
예제 #8
0
            public OverloadStop Decode(BitArrayInputStream input)
            {
                OverloadStop stop = new OverloadStop();

                stop.InitDefaults();
                input.ReadBit();
                input.skipUnreadedBits();
                stop.protocolIEs = new List <ProtocolIE_Field>();
                const int nBits = 0x10;
                int       num5  = input.ReadBits(nBits);

                for (int i = 0; i < num5; i++)
                {
                    ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input);
                    stop.protocolIEs.Add(item);
                }
                return(stop);
            }
예제 #9
0
            public E_RABSetupResponse Decode(BitArrayInputStream input)
            {
                E_RABSetupResponse response = new E_RABSetupResponse();

                response.InitDefaults();
                input.ReadBit();
                input.skipUnreadedBits();
                response.protocolIEs = new List <ProtocolIE_Field>();
                const int nBits = 0x10;
                int       num5  = input.ReadBits(nBits);

                for (int i = 0; i < num5; i++)
                {
                    ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input);
                    response.protocolIEs.Add(item);
                }
                return(response);
            }
예제 #10
0
            public HandoverRequired Decode(BitArrayInputStream input)
            {
                HandoverRequired required = new HandoverRequired();

                required.InitDefaults();
                input.readBit();
                input.skipUnreadedBits();
                required.protocolIEs = new List <ProtocolIE_Field>();
                const int nBits = 0x10;
                int       num5  = input.readBits(nBits);

                for (int i = 0; i < num5; i++)
                {
                    ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input);
                    required.protocolIEs.Add(item);
                }
                return(required);
            }
예제 #11
0
            public TraceStart Decode(BitArrayInputStream input)
            {
                TraceStart start = new TraceStart();

                start.InitDefaults();
                input.readBit();
                input.skipUnreadedBits();
                start.protocolIEs = new List <ProtocolIE_Field>();
                const int nBits = 0x10;
                int       num5  = input.readBits(nBits);

                for (int i = 0; i < num5; i++)
                {
                    ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input);
                    start.protocolIEs.Add(item);
                }
                return(start);
            }
예제 #12
0
            public TraceFailureIndication Decode(BitArrayInputStream input)
            {
                TraceFailureIndication indication = new TraceFailureIndication();

                indication.InitDefaults();
                input.readBit();
                input.skipUnreadedBits();
                indication.protocolIEs = new List <ProtocolIE_Field>();
                const int nBits = 0x10;
                int       num5  = input.readBits(nBits);

                for (int i = 0; i < num5; i++)
                {
                    ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input);
                    indication.protocolIEs.Add(item);
                }
                return(indication);
            }
예제 #13
0
            public E_RABReleaseCommand Decode(BitArrayInputStream input)
            {
                E_RABReleaseCommand command = new E_RABReleaseCommand();

                command.InitDefaults();
                input.readBit();
                input.skipUnreadedBits();
                command.protocolIEs = new List <ProtocolIE_Field>();
                const int nBits = 0x10;
                int       num5  = input.readBits(nBits);

                for (int i = 0; i < num5; i++)
                {
                    ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input);
                    command.protocolIEs.Add(item);
                }
                return(command);
            }
예제 #14
0
            public InitialContextSetupRequest Decode(BitArrayInputStream input)
            {
                InitialContextSetupRequest request = new InitialContextSetupRequest();

                request.InitDefaults();
                input.ReadBit();
                input.skipUnreadedBits();
                request.protocolIEs = new List <ProtocolIE_Field>();
                int nBits = 0x10;
                int num5  = input.ReadBits(nBits);

                for (int i = 0; i < num5; i++)
                {
                    ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input);
                    request.protocolIEs.Add(item);
                }
                return(request);
            }
예제 #15
0
            public DownlinkNonUEAssociatedLPPaTransport Decode(BitArrayInputStream input)
            {
                DownlinkNonUEAssociatedLPPaTransport transport = new DownlinkNonUEAssociatedLPPaTransport();

                transport.InitDefaults();
                input.ReadBit();
                input.skipUnreadedBits();
                transport.protocolIEs = new List <ProtocolIE_Field>();
                const int nBits = 0x10;
                int       num5  = input.ReadBits(nBits);

                for (int i = 0; i < num5; i++)
                {
                    ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input);
                    transport.protocolIEs.Add(item);
                }
                return(transport);
            }
예제 #16
0
            public DownlinkS1cdma2000tunneling Decode(BitArrayInputStream input)
            {
                DownlinkS1cdma2000tunneling kscdmatunneling = new DownlinkS1cdma2000tunneling();

                kscdmatunneling.InitDefaults();
                input.ReadBit();
                input.skipUnreadedBits();
                kscdmatunneling.protocolIEs = new List <ProtocolIE_Field>();
                const int nBits = 0x10;
                int       num5  = input.ReadBits(nBits);

                for (int i = 0; i < num5; i++)
                {
                    ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input);
                    kscdmatunneling.protocolIEs.Add(item);
                }
                return(kscdmatunneling);
            }
예제 #17
0
            public S1SetupFailure Decode(BitArrayInputStream input)
            {
                S1SetupFailure failure = new S1SetupFailure();

                failure.InitDefaults();
                input.ReadBit();
                input.skipUnreadedBits();
                failure.protocolIEs = new List <ProtocolIE_Field>();
                const int nBits = 0x10;
                int       num5  = input.ReadBits(nBits);

                for (int i = 0; i < num5; i++)
                {
                    ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input);
                    failure.protocolIEs.Add(item);
                }
                return(failure);
            }
예제 #18
0
            public Paging Decode(BitArrayInputStream input)
            {
                Paging paging = new Paging();

                paging.InitDefaults();
                input.ReadBit();
                input.skipUnreadedBits();
                paging.protocolIEs = new List <ProtocolIE_Field>();
                const int nBits = 0x10;
                int       num5  = input.ReadBits(nBits);

                for (int i = 0; i < num5; i++)
                {
                    ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input);
                    paging.protocolIEs.Add(item);
                }
                return(paging);
            }
예제 #19
0
            public LocationReportingControl Decode(BitArrayInputStream input)
            {
                LocationReportingControl control = new LocationReportingControl();

                control.InitDefaults();
                input.readBit();
                input.skipUnreadedBits();
                control.protocolIEs = new List <ProtocolIE_Field>();
                const int nBits = 0x10;
                int       num5  = input.readBits(nBits);

                for (int i = 0; i < num5; i++)
                {
                    ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input);
                    control.protocolIEs.Add(item);
                }
                return(control);
            }
예제 #20
0
            public DeactivateTrace Decode(BitArrayInputStream input)
            {
                DeactivateTrace trace = new DeactivateTrace();

                trace.InitDefaults();
                input.ReadBit();
                input.skipUnreadedBits();
                trace.protocolIEs = new List <ProtocolIE_Field>();
                const int nBits = 0x10;
                int       num5  = input.ReadBits(nBits);

                for (int i = 0; i < num5; i++)
                {
                    ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input);
                    trace.protocolIEs.Add(item);
                }
                return(trace);
            }
예제 #21
0
            public ENBDirectInformationTransfer Decode(BitArrayInputStream input)
            {
                ENBDirectInformationTransfer transfer = new ENBDirectInformationTransfer();

                transfer.InitDefaults();
                input.readBit();
                input.skipUnreadedBits();
                transfer.protocolIEs = new List <ProtocolIE_Field>();
                const int nBits = 0x10;
                int       num5  = input.readBits(nBits);

                for (int i = 0; i < num5; i++)
                {
                    ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input);
                    transfer.protocolIEs.Add(item);
                }
                return(transfer);
            }
예제 #22
0
            public PathSwitchRequestAcknowledge Decode(BitArrayInputStream input)
            {
                PathSwitchRequestAcknowledge acknowledge = new PathSwitchRequestAcknowledge();

                acknowledge.InitDefaults();
                input.readBit();
                input.skipUnreadedBits();
                acknowledge.protocolIEs = new List <ProtocolIE_Field>();
                const int nBits = 0x10;
                int       num5  = input.readBits(nBits);

                for (int i = 0; i < num5; i++)
                {
                    ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input);
                    acknowledge.protocolIEs.Add(item);
                }
                return(acknowledge);
            }
예제 #23
0
            public ENBConfigurationUpdateAcknowledge Decode(BitArrayInputStream input)
            {
                ENBConfigurationUpdateAcknowledge acknowledge = new ENBConfigurationUpdateAcknowledge();

                acknowledge.InitDefaults();
                input.ReadBit();
                input.skipUnreadedBits();
                acknowledge.protocolIEs = new List <ProtocolIE_Field>();
                const int nBits = 0x10;
                int       num5  = input.ReadBits(nBits);

                for (int i = 0; i < num5; i++)
                {
                    ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input);
                    acknowledge.protocolIEs.Add(item);
                }
                return(acknowledge);
            }
예제 #24
0
            public InitialUEMessage Decode(BitArrayInputStream input)
            {
                InitialUEMessage message = new InitialUEMessage();

                message.InitDefaults();
                input.ReadBit();
                input.skipUnreadedBits();
                message.protocolIEs = new List <ProtocolIE_Field>();
                const int nBits = 0x10;
                int       num5  = input.ReadBits(nBits);

                for (int i = 0; i < num5; i++)
                {
                    ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input);
                    message.protocolIEs.Add(item);
                }
                return(message);
            }
예제 #25
0
            public SourceeNB_ToTargeteNB_TransparentContainer Decode(BitArrayInputStream input)
            {
                int num4;
                SourceeNB_ToTargeteNB_TransparentContainer container = new SourceeNB_ToTargeteNB_TransparentContainer();

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

                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.e_RABInformationList = new List <ProtocolIE_Field>();
                    num4 = 8;
                    int num5 = input.readBits(num4) + 1;
                    for (int j = 0; j < num5; j++)
                    {
                        ProtocolIE_Field field = ProtocolIE_Field.PerDecoder.Instance.Decode(input);
                        container.e_RABInformationList.Add(field);
                    }
                }
                container.targetCell_ID = EUTRAN_CGI.PerDecoder.Instance.Decode(input);
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    container.subscriberProfileIDforRFP = input.readBits(8) + 1;
                }
                container.uE_HistoryInformation = new List <LastVisitedCell_Item>();
                num4 = 4;
                int num7 = input.readBits(num4) + 1;

                for (int i = 0; i < num7; i++)
                {
                    LastVisitedCell_Item item = LastVisitedCell_Item.PerDecoder.Instance.Decode(input);
                    container.uE_HistoryInformation.Add(item);
                }
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    container.iE_Extensions = new List <ProtocolExtensionField>();
                    num4 = 0x10;
                    int num9 = input.readBits(num4) + 1;
                    for (int k = 0; k < num9; k++)
                    {
                        ProtocolExtensionField field2 = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
                        container.iE_Extensions.Add(field2);
                    }
                }
                return(container);
            }