コード例 #1
0
    private static int smethod_5(Class52 A_0, BinaryWriter A_1, BinaryWriter A_2)
    {
        int position = (int)A_1.BaseStream.Position;

        A_1.Write((short)0);
        A_1.Write((short)smethod_7(A_0));
        A_1.Write(0x40);
        A_1.Write((short)0x1a);
        int num2 = 0;

        for (int i = 0; i < A_0.method_4(); i++)
        {
            Class827[] classArray2 = A_0.method_6(i).method_52(EmbeddedFontFormat.EmbeddedOpenType);
            if (classArray2 != null)
            {
                foreach (Class827 class2 in classArray2)
                {
                    if (class2 != null)
                    {
                        smethod_6(class2, i, num2, A_1, A_2);
                        num2++;
                    }
                }
            }
        }
        return(((int)A_1.BaseStream.Position) - position);
    }
コード例 #2
0
 private static void smethod_2(Class52 A_0, BinaryReader A_1, int A_2, BinaryReader A_3)
 {
     if (A_2 != 0)
     {
         A_1.ReadInt16();
         int num5 = A_1.ReadInt16();
         A_1.ReadInt32();
         A_1.ReadInt16();
         for (int i = 0; i < num5; i++)
         {
             int num  = A_1.ReadInt32();
             int num2 = A_1.ReadInt16();
             EmbeddedFontStyle style = ((EmbeddedFontStyle)A_1.ReadInt16()) & EmbeddedFontStyle.BoldItalic;
             bool flag = A_1.ReadUInt32() != uint.MaxValue;
             A_3.BaseStream.Position = num;
             int count = A_3.ReadInt32();
             A_3.BaseStream.Position = num;
             A_0.method_6(num2).method_56(A_3.ReadBytes(count), EmbeddedFontFormat.EmbeddedOpenType, style, flag);
         }
     }
 }