Ejemplo n.º 1
0
        public T GetBits <T>(byte bitCount)
        {
            int num = 0;

            while (true)
            {
IL_99:
                uint arg_71_0 = 2709643282u;
                while (true)
                {
                    uint num2;
                    int  arg_47_0;
                    switch ((num2 = (arg_71_0 ^ 4046007670u)) % 7u)
                    {
                    case 0u:
                        goto IL_99;

                    case 1u:
                    {
                        if (!this.GetBit())
                        {
                            arg_71_0 = 2840728327u;
                            continue;
                        }
                        int num3;
                        arg_47_0 = (1 << num3 | num);
                        goto IL_47;
                    }

                    case 2u:
                        arg_47_0 = num;
                        goto IL_47;

                    case 3u:
                        arg_71_0 = (num2 * 2404994528u ^ 3373856103u);
                        continue;

                    case 5u:
                    {
                        int num3;
                        arg_71_0 = ((num3 >= 0) ? 2463017341u : 3620381330u);
                        continue;
                    }

                    case 6u:
                    {
                        int num3 = (int)(checked (bitCount - 1));
                        arg_71_0 = (num2 * 2650002771u ^ 1736851699u);
                        continue;
                    }
                    }
                    goto Block_3;
IL_47:
                    num = arg_47_0;
                    checked
                    {
                        int num3;
                        num3--;
                        arg_71_0 = 3409958279u;
                    }
                }
            }
Block_3:
            return((T)((object)BitUnpack.smethod_3(num, BitUnpack.smethod_1(typeof(T).TypeHandle), BitUnpack.smethod_2())));
        }
Ejemplo n.º 2
0
        public T GetNameLength <T>(byte bitCount)
        {
            int num = 0;

            while (true)
            {
IL_B3:
                uint arg_87_0 = 3218337352u;
                while (true)
                {
                    uint num2;
                    int  arg_61_0;
                    switch ((num2 = (arg_87_0 ^ 2211964791u)) % 8u)
                    {
                    case 0u:
                        goto IL_B3;

                    case 1u:
                    {
                        if (!this.GetBit())
                        {
                            arg_87_0 = 3412645637u;
                            continue;
                        }
                        int num3;
                        arg_61_0 = (1 << num3 | num);
                        goto IL_61;
                    }

                    case 2u:
                        arg_61_0 = num;
                        goto IL_61;

                    case 3u:
                        checked
                        {
                            int num3;
                            num3--;
                        }
                        arg_87_0 = (num2 * 501925676u ^ 199027471u);
                        continue;

                    case 4u:
                    {
                        int num3;
                        arg_87_0 = ((num3 >= 0) ? 2498537230u : 4019268314u);
                        continue;
                    }

                    case 6u:
                    {
                        int num3 = (int)(checked (bitCount - 1));
                        arg_87_0 = (num2 * 3080884236u ^ 249762499u);
                        continue;
                    }

                    case 7u:
                        this.GetBit();
                        arg_87_0 = (num2 * 1040566224u ^ 4030753881u);
                        continue;
                    }
                    goto Block_3;
IL_61:
                    num      = arg_61_0;
                    arg_87_0 = 3501782828u;
                }
            }
Block_3:
            return((T)((object)BitUnpack.smethod_3(num, BitUnpack.smethod_1(typeof(T).TypeHandle), BitUnpack.smethod_2())));
        }