Example #1
0
        public void WriteStringLength(string data, int count)
        {
            int bit = BitPack.smethod_7(BitPack.smethod_6(), data).Length;

            this.Write <int>(bit, count);
        }
Example #2
0
        public void Write <T>(T bit, int count)
        {
            checked
            {
                int num = count - 1;
                while (true)
                {
IL_7F:
                    int arg_59_0 = (num >= 0) ? 429789314 : 61619512;
                    while (true)
                    {
                        switch ((arg_59_0 ^ 250283959) % 4)
                        {
                        case 0:
                            arg_59_0 = 429789314;
                            continue;

                        case 1:
                            this.Write <T>((T)((object)BitPack.smethod_5(BitPack.smethod_3(bit) >> num & 1, BitPack.smethod_4(typeof(T).TypeHandle))));
                            num--;
                            arg_59_0 = 1923155801;
                            continue;

                        case 2:
                            goto IL_7F;
                        }
                        return;
                    }
                }
            }
        }