Ejemplo n.º 1
0
    internal static Class472 smethod_0(Class472 A_0, string A_1)
    {
        int num = 9;

        if (A_0 == null)
        {
            A_0 = new Class472();
        }
        if (A_1 == BookmarkStart.b("䄮帰崲倴", num))
        {
            A_0.method_3(BorderStyle.None);
            return(A_0);
        }
        string[] strArray = A_1.Split(new char[] { ' ' });
        for (int i = 0; i < strArray.Length; i++)
        {
            string str = strArray[i].Trim();
            if (!str.StartsWith(BookmarkStart.b("మ", num)) && (str != BookmarkStart.b("嬮䌰刲嬴䐶䤸娺似娾⽀㝂", num)))
            {
                if (Class576.smethod_38(str))
                {
                    A_0.method_1(Class576.smethod_41(str));
                }
                else if (A_0.method_2() == BorderStyle.None)
                {
                    A_0.method_3(Class922.smethod_35(str));
                }
            }
            else
            {
                A_0.method_5(Class576.smethod_76(str));
            }
        }
        return(A_0);
    }
Ejemplo n.º 2
0
    public void method_25(Stream A_0, bool A_1)
    {
        if (A_0 == null)
        {
            throw new ArgumentNullException();
        }
        Stream stream = null;

        if (!A_0.CanSeek)
        {
            stream = A_0;
            A_0    = new MemoryStream();
        }
        int num   = 0;
        int count = this.list_0.Count;

        while (num < count)
        {
            this.list_0[num].method_19(A_0);
            num++;
        }
        this.method_31(A_0);
        if (stream != null)
        {
            A_0.Position = 0L;
            ((MemoryStream)A_0).WriteTo(stream);
            A_0.Close();
            A_0 = stream;
        }
        if (A_1)
        {
            A_0.Close();
        }
    }
Ejemplo n.º 3
0
    public void method_5(Stream A_0)
    {
        if (A_0 == null)
        {
            throw new ArgumentNullException();
        }
        Stream stream = null;

        if (!A_0.CanSeek)
        {
            stream = A_0;
            A_0    = new MemoryStream();
        }
        this.stream_0          = A_0;
        this.stream_0.Position = 0x200L;
        this.class522_0        = new Class522();
        this.class917_0        = new Class917(this.stream_0, this.class522_0);
        this.class916_0        = new Class916();
        this.memoryStream_0    = new MemoryStream();
        this.class410_0        = new Class410();
        this.method_6(this.class1089_0, null);
        if (this.memoryStream_0.Length > 0L)
        {
            int num;
            this.class410_0.method_0(0).uint_4 = this.method_8(this.memoryStream_0, true);
            this.class410_0.method_0(0).long_2 = this.memoryStream_0.Length;
            this.class522_0.uint_3             = this.method_7(this.class916_0.method_4(), true, out num);
            this.class522_0.int_7 = num;
        }
        else
        {
            this.class522_0.uint_3 = 0xfffffffe;
        }
        this.class522_0.uint_2 = this.method_8(this.class410_0.method_7(), true);
        this.class917_0.method_8();
        this.stream_0.Position = 0L;
        this.class522_0.method_1(new BinaryWriter(this.stream_0, Encoding.Unicode));
        this.stream_0.Position = this.stream_0.Length;
        if (stream != null)
        {
            A_0.Position = 0L;
            ((MemoryStream)A_0).WriteTo(stream);
            A_0.Close();
            A_0 = stream;
        }
    }
Ejemplo n.º 4
0
 internal void method_7(PrivateFontCollection A_0)
 {
     if (this.byte_0 != null)
     {
         byte[] source = null;
         if (this.embeddedFontFormat_0 == EmbeddedFontFormat.OpenType)
         {
             source = this.byte_0;
         }
         else if (this.embeddedFontFormat_0 == EmbeddedFontFormat.EmbeddedOpenType)
         {
             source = spr᩼.ᜂ(this.byte_0);
         }
         if (source != null)
         {
             if (A_0 == null)
             {
                 A_0 = new PrivateFontCollection();
             }
             IntPtr destination = Marshal.AllocCoTaskMem(source.Length);
             if (destination != IntPtr.Zero)
             {
                 try
                 {
                     Marshal.Copy(source, 0, destination, source.Length);
                     A_0.AddMemoryFont(destination, source.Length);
                 }
                 catch (Exception)
                 {
                 }
                 finally
                 {
                     Marshal.FreeCoTaskMem(destination);
                 }
             }
         }
     }
 }