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

                gid.InitDefaults();
                input.readBit();
                switch (input.readBits(1))
                {
                case 0:
                    gid.s_TMSI = S_TMSI.PerDecoder.Instance.Decode(input);
                    return(gid);

                case 1:
                    int num = input.readBits(3);
                    input.skipUnreadedBits();
                    gid.iMSI = input.readOctetString(num + 3);
                    return(gid);
                }
                throw new Exception(GetType().Name + ":NoChoice had been choose");
            }
コード例 #2
0
ファイル: UE_Information.cs プロジェクト: ouyh18/LteTools
            public UEPagingID Decode(BitArrayInputStream input)
            {
                UEPagingID gid = new UEPagingID();
                gid.InitDefaults();
                input.readBit();
                switch (input.readBits(1))
                {
                    case 0:
                        gid.s_TMSI = S_TMSI.PerDecoder.Instance.Decode(input);
                        return gid;

                    case 1:
                        int num = input.readBits(3);
                        input.skipUnreadedBits();
                        gid.iMSI = input.readOctetString(num + 3);
                        return gid;
                }
                throw new Exception(GetType().Name + ":NoChoice had been choose");
            }