コード例 #1
0
            public PCCH_MessageType Decode(BitArrayInputStream input)
            {
                PCCH_MessageType type = new PCCH_MessageType();

                type.InitDefaults();
                switch (input.readBits(1))
                {
                case 0:
                    type.c1 = c1_Type.PerDecoder.Instance.Decode(input);
                    return(type);

                case 1:
                    type.messageClassExtension = messageClassExtension_Type.PerDecoder.Instance.Decode(input);
                    return(type);
                }
                throw new Exception(GetType().Name + ":NoChoice had been choose");
            }
コード例 #2
0
ファイル: PCCH.cs プロジェクト: ouyh18/LteTools
            public PCCH_MessageType Decode(BitArrayInputStream input)
            {
                PCCH_MessageType type = new PCCH_MessageType();
                type.InitDefaults();
                switch (input.readBits(1))
                {
                    case 0:
                        type.c1 = c1_Type.PerDecoder.Instance.Decode(input);
                        return type;

                    case 1:
                        type.messageClassExtension = messageClassExtension_Type.PerDecoder.Instance.Decode(input);
                        return type;
                }
                throw new Exception(GetType().Name + ":NoChoice had been choose");
            }