Exemple #1
0
        protected internal override void vmethod_0(Class80 reader)
        {
            Class74 stream = reader.Stream;
            int     num1   = (int)stream.method_8();
            int     num2   = (int)stream.method_8();

            this.ushort_0 = stream.method_8();
            for (int index = 0; index < num2; ++index)
            {
                int num3         = (int)stream.method_8();
                int num4         = (int)stream.method_8();
                int num5         = (int)stream.method_8();
                int num6         = (int)stream.method_8();
                int length       = (int)stream.method_8();
                int stringOffset = (int)stream.method_8();
                if (num3 == 3 && (num4 == 0 || num4 == 1) && num5 == 1033)
                {
                    switch (num6)
                    {
                    case 1:
                        this.string_0 = this.method_0(stream, stringOffset, length);
                        break;

                    case 4:
                        this.string_1 = this.method_0(stream, stringOffset, length);
                        break;
                    }
                    if (this.string_0 != string.Empty && this.string_1 != string.Empty)
                    {
                        break;
                    }
                }
            }
        }
Exemple #2
0
        private void method_4(Class80 entity, Interface9 writer)
        {
            string str = entity.imethod_2(writer.FileFormatVersion);

            writer.imethod_13(str);
            entity.imethod_1(writer);
        }
Exemple #3
0
        protected internal override void vmethod_0(Class80 reader)
        {
            Class74 stream = reader.Stream;

            stream.method_25(2L);
            int num1 = (int)stream.method_8();

            for (int index1 = 0; index1 < num1; ++index1)
            {
                stream.method_25(2L);
                ushort num2 = stream.method_8();
                ushort num3 = stream.method_8();
                if (((int)num3 & 1) == 1 && ((int)num3 & 2) == 0 && (int)num3 >> 8 == 0)
                {
                    int numPairs = (int)stream.method_8();
                    this.bool_0    = true;
                    this.class77_0 = new Class77(numPairs);
                    stream.method_25(6L);
                    for (int index2 = 0; index2 < numPairs; ++index2)
                    {
                        this.class77_0.method_1(stream.method_8(), stream.method_8(), (int)stream.method_6());
                    }
                }
                else
                {
                    stream.method_25((long)((int)num2 - 6));
                }
            }
        }
Exemple #4
0
    // Token: 0x060007BD RID: 1981 RVA: 0x00045958 File Offset: 0x00043B58
    public override Class80 vmethod_3(Class80 class80_0)
    {
        base.method_1(class80_0.method_0());
        switch (class80_0.vmethod_2())
        {
        case 0:
            this.method_3(((Class97)class80_0).method_2());
            return(this);

        case 2:
            this.method_3(Convert.ToBoolean(((Class88)class80_0).method_2()));
            return(this);

        case 6:
            this.method_3(Convert.ToBoolean(((Class83)class80_0).method_2()));
            return(this);

        case 7:
            this.method_3(Convert.ToBoolean(((Class85)class80_0).method_2()));
            return(this);

        case 8:
            this.method_3(Convert.ToBoolean(((Class84)class80_0).method_2()));
            return(this);

        case 10:
            this.method_3(Convert.ToBoolean(((Class92)class80_0).method_2()));
            return(this);

        case 14:
            this.method_3(Convert.ToBoolean(((Class98)class80_0).method_2()));
            return(this);

        case 16:
            this.method_3(Convert.ToBoolean(((Class82)class80_0).method_2()));
            return(this);

        case 18:
            this.method_3(Convert.ToBoolean(((Class94)class80_0).method_2()));
            return(this);

        case 20:
            this.method_3(Convert.ToBoolean(((Class89)class80_0).method_2()));
            return(this);

        case 21:
            this.method_3(Convert.ToBoolean(((Class90)class80_0).method_2()));
            return(this);

        case 23:
            this.method_3(Convert.ToBoolean(((Class99)class80_0).method_2()));
            return(this);

        case 24:
            this.method_3(Convert.ToBoolean(((Class87)class80_0).method_2()));
            return(this);
        }
        throw new ArgumentOutOfRangeException();
    }
Exemple #5
0
    // Token: 0x0600072A RID: 1834 RVA: 0x0002DFB0 File Offset: 0x0002C1B0
    public static string smethod_5(string string_0)
    {
        string text;
        string result;

        Class80.smethod_6(string_0, out text, out result);
        return(result);
    }
Exemple #6
0
 protected internal override void vmethod_0(Class80 reader)
 {
     this.short_0 = new short[this.Entry.Length / 2U];
     for (int index = 0; index < this.short_0.Length; ++index)
     {
         this.short_0[index] = reader.Stream.method_6();
     }
 }
Exemple #7
0
    // Token: 0x06000588 RID: 1416 RVA: 0x00030CD0 File Offset: 0x0002EED0
    public override Class80 vmethod_3(Class80 class80_0)
    {
        base.method_1(class80_0.method_0());
        switch (class80_0.vmethod_2())
        {
        case 2:
            this.method_3((float)((Class88)class80_0).method_2());
            return(this);

        case 7:
            this.method_3((float)((Class85)class80_0).method_2());
            return(this);

        case 8:
            this.method_3(Convert.ToSingle(((Class84)class80_0).method_2()));
            return(this);

        case 10:
            this.method_3(((Class92)class80_0).method_2());
            return(this);

        case 14:
            this.method_3((float)((Class98)class80_0).method_2());
            return(this);

        case 15:
            this.method_3(((Class91)class80_0).method_2());
            return(this);

        case 16:
            this.method_3((float)((Class82)class80_0).method_2());
            return(this);

        case 18:
            this.method_3((float)((Class94)class80_0).method_2());
            return(this);

        case 19:
            this.method_3((float)((Class86)class80_0).method_2());
            return(this);

        case 20:
            this.method_3(((Class89)class80_0).method_2());
            return(this);

        case 21:
            this.method_3((float)((Class90)class80_0).method_2());
            return(this);

        case 24:
            this.method_3((float)((Class87)class80_0).method_2());
            return(this);
        }
        throw new ArgumentOutOfRangeException();
    }
Exemple #8
0
    // Token: 0x060001C0 RID: 448 RVA: 0x000108F4 File Offset: 0x0000EAF4
    public override Class80 vmethod_3(Class80 class80_0)
    {
        base.method_1(class80_0.method_0());
        int num = class80_0.vmethod_2();

        if (num != 2)
        {
            switch (num)
            {
            case 7:
                this.method_3((double)((Class85)class80_0).method_2());
                return(this);

            case 10:
                this.method_3(((Class92)class80_0).method_2());
                return(this);

            case 14:
                this.method_3((double)((Class98)class80_0).method_2());
                return(this);

            case 15:
                this.method_3((double)((Class91)class80_0).method_2());
                return(this);

            case 16:
                this.method_3((double)((Class82)class80_0).method_2());
                return(this);

            case 18:
                this.method_3((double)((Class94)class80_0).method_2());
                return(this);

            case 19:
                this.method_3(((Class86)class80_0).method_2());
                return(this);

            case 20:
                this.method_3(((Class89)class80_0).method_2());
                return(this);

            case 21:
                this.method_3((double)((Class90)class80_0).method_2());
                return(this);

            case 24:
                this.method_3((double)((Class87)class80_0).method_2());
                return(this);
            }
            throw new ArgumentOutOfRangeException();
        }
        this.method_3((double)((Class88)class80_0).method_2());
        return(this);
    }
Exemple #9
0
 public virtual void imethod_6(Class80 entity)
 {
     if (entity == null)
     {
         this.method_0("$" + -1.ToString());
     }
     else
     {
         this.method_0("$" + entity.Index.ToString());
     }
 }
Exemple #10
0
    // Token: 0x06000052 RID: 82 RVA: 0x00008140 File Offset: 0x00006340
    public override Class80 vmethod_3(Class80 class80_0)
    {
        base.method_1(class80_0.method_0());
        int num = class80_0.vmethod_2();

        if (num != 2)
        {
            switch (num)
            {
            case 6:
                this.method_3(((Class83)class80_0).method_2());
                return(this);

            case 8:
                this.method_3(new UIntPtr(Convert.ToUInt64(((Class84)class80_0).method_2())));
                return(this);

            case 10:
                this.method_3((UIntPtr)((Class92)class80_0).method_2());
                return(this);

            case 14:
                this.method_3((UIntPtr)((ulong)((long)((Class98)class80_0).method_2())));
                return(this);

            case 15:
                this.method_3((UIntPtr)((ulong)((Class91)class80_0).method_2()));
                return(this);

            case 16:
                this.method_3((UIntPtr)((ulong)((Class82)class80_0).method_2()));
                return(this);

            case 19:
                this.method_3((UIntPtr)((ulong)((Class86)class80_0).method_2()));
                return(this);

            case 20:
                this.method_3((UIntPtr)((Class89)class80_0).method_2());
                return(this);

            case 21:
                this.method_3((UIntPtr)((Class90)class80_0).method_2());
                return(this);

            case 24:
                this.method_3((UIntPtr)((uint)((Class87)class80_0).method_2()));
                return(this);
            }
            throw new ArgumentOutOfRangeException();
        }
        this.method_3((UIntPtr)((uint)((Class88)class80_0).method_2()));
        return(this);
    }
Exemple #11
0
    // Token: 0x06000151 RID: 337 RVA: 0x0000F43C File Offset: 0x0000D63C
    public override Class80 vmethod_3(Class80 class80_1)
    {
        base.method_1(class80_1.method_0());
        int num = class80_1.vmethod_2();

        if (num == 5)
        {
            this.method_3(((Class102)class80_1).method_2());
            return(this);
        }
        throw new ArgumentOutOfRangeException();
    }
Exemple #12
0
        internal override void vmethod_0(Interface8 reader)
        {
            base.vmethod_0(reader);
            int index1 = reader.imethod_7();

            reader.imethod_0(index1, (Delegate10)(entity => this.class113_1 = entity as Class113));
            int index2 = reader.imethod_7();

            reader.imethod_0(index2, (Delegate10)(entity => this.class113_2 = entity as Class113));
            int index3 = reader.imethod_7();

            reader.imethod_0(index3, (Delegate10)(entity => this.class80_0 = entity));
        }
Exemple #13
0
 protected internal override void vmethod_0(Class80 reader)
 {
     ns2.Class74 stream = reader.Stream;
     this.int_0   = stream.method_16();
     this.float_0 = (float)stream.method_16() / 65536f;
     this.short_0 = stream.method_6();
     this.short_1 = stream.method_6();
     this.uint_0  = stream.method_14();
     this.uint_1  = stream.method_14();
     this.uint_2  = stream.method_14();
     this.uint_3  = stream.method_14();
     this.uint_4  = stream.method_14();
 }
Exemple #14
0
 internal override void vmethod_0(Interface8 reader)
 {
     base.vmethod_0(reader);
     this.class716_0 = new Class686.Class716(reader);
     if (this.class716_0.Value)
     {
         this.int_2 = reader.imethod_5();
     }
     else
     {
         reader.imethod_0(reader.imethod_7(), (Delegate10)(entity => this.class80_1 = entity));
     }
 }
Exemple #15
0
    // Token: 0x06000068 RID: 104 RVA: 0x00008348 File Offset: 0x00006548
    public override Class80 vmethod_3(Class80 class80_0)
    {
        base.method_1(class80_0.method_0());
        int num = class80_0.vmethod_2();

        if (num == 17)
        {
            Class101 @class = (Class101)class80_0;
            this.method_3(@class.method_2());
            this.method_5(@class.method_4());
            return(this);
        }
        throw new ArgumentOutOfRangeException();
    }
Exemple #16
0
 internal override void vmethod_0(Interface8 reader)
 {
     base.vmethod_0(reader);
     reader.imethod_0(reader.imethod_7(), (Delegate10)(entity => this.class112_0 = (Class112)entity));
     reader.imethod_0(reader.imethod_7(), (Delegate10)(entity => this.class80_1 = entity));
     this.int_2 = reader.imethod_5();
     this.int_3 = reader.imethod_5();
     if (this.int_3 <= 0)
     {
         return;
     }
     this.class744_0 = new Class744();
     this.class744_0.imethod_0(reader);
 }
Exemple #17
0
        public static Class0 smethod_0(string tableName, Class80 reader)
        {
            Class41 entry = reader.method_14(tableName);

            switch (tableName)
            {
            case "head":
                return((Class0) new Class2(entry));

            case "hhea":
                return((Class0) new Class8(entry));

            case "hmtx":
                return((Class0) new Class6(entry));

            case "maxp":
                return((Class0) new Class11(entry));

            case "loca":
                return((Class0) new Class5(entry));

            case "glyf":
                return((Class0) new Class9(entry));

            case "cvt ":
                return((Class0) new Class13(entry));

            case "prep":
                return((Class0) new Class3(entry));

            case "fpgm":
                return((Class0) new Class7(entry));

            case "post":
                return((Class0) new Class10(entry));

            case "OS/2":
                return((Class0) new Class4(entry));

            case "name":
                return((Class0) new Class1(entry));

            case "kern":
                return((Class0) new Class12(entry));

            default:
                throw new ArgumentException("Unrecognised table name '" + tableName + "'", nameof(tableName));
            }
        }
Exemple #18
0
 // Token: 0x06000EEC RID: 3820 RVA: 0x00046068 File Offset: 0x00044268
 private static bool smethod_0(object object_2, object object_3)
 {
     if (object_2.Type == JTokenType.String)
     {
         if (object_3.Type == JTokenType.String)
         {
             string text    = (string)object_3.Value;
             int    num     = text.LastIndexOf('/');
             string pattern = text.Substring(1, num - 1);
             string string_ = text.Substring(num + 1);
             return(Regex.IsMatch((string)object_2.Value, pattern, Class80.smethod_7(string_)));
         }
     }
     return(false);
 }
Exemple #19
0
        protected internal override void vmethod_0(Class80 reader)
        {
            Class74 stream = reader.Stream;

            this.ushort_0 = stream.method_8();
            this.short_0  = stream.method_4();
            this.ushort_1 = stream.method_8();
            this.ushort_2 = stream.method_8();
            this.ushort_3 = (ushort)((uint)stream.method_8() & 4294967294U);
            this.short_1  = stream.method_4();
            this.short_2  = stream.method_4();
            this.short_3  = stream.method_4();
            this.short_4  = stream.method_4();
            this.short_5  = stream.method_4();
            this.short_6  = stream.method_4();
            this.short_7  = stream.method_4();
            this.short_8  = stream.method_4();
            this.short_9  = stream.method_4();
            this.short_10 = stream.method_4();
            short num = stream.method_4();

            this.byte_0 = (byte)((uint)num >> 8);
            this.byte_1 = (byte)((uint)num & (uint)byte.MaxValue);
            stream.method_24(this.byte_2, 0, this.byte_2.Length);
            this.uint_0     = stream.method_14();
            this.uint_1     = stream.method_14();
            this.uint_2     = stream.method_14();
            this.uint_3     = stream.method_14();
            this.sbyte_0[0] = stream.method_2();
            this.sbyte_0[1] = stream.method_2();
            this.sbyte_0[2] = stream.method_2();
            this.sbyte_0[3] = stream.method_2();
            this.ushort_4   = stream.method_8();
            this.ushort_5   = stream.method_8();
            this.ushort_6   = stream.method_8();
            this.short_11   = stream.method_4();
            this.short_12   = stream.method_4();
            this.short_13   = stream.method_4();
            this.ushort_7   = stream.method_8();
            this.ushort_8   = stream.method_8();
            this.uint_4     = stream.method_14();
            this.uint_5     = stream.method_14();
            this.short_14   = stream.method_4();
            this.short_15   = stream.method_4();
            this.ushort_9   = stream.method_8();
            this.ushort_10  = stream.method_8();
            this.ushort_11  = stream.method_8();
        }
Exemple #20
0
        private void method_6(int index)
        {
            IList <Delegate10> delegate10List;

            if (!this.idictionary_0.TryGetValue(index, out delegate10List))
            {
                return;
            }
            this.idictionary_0.Remove(index);
            Class80 entity = this.ilist_0[index];

            foreach (Delegate10 delegate10 in (IEnumerable <Delegate10>)delegate10List)
            {
                delegate10(entity);
            }
        }
Exemple #21
0
    // Token: 0x060005D0 RID: 1488 RVA: 0x00006AB3 File Offset: 0x00004CB3
    public static XmlDateTimeSerializationMode smethod_1(DateTimeKind dateTimeKind_0)
    {
        switch (dateTimeKind_0)
        {
        case DateTimeKind.Unspecified:
            return(XmlDateTimeSerializationMode.Unspecified);

        case DateTimeKind.Utc:
            return(XmlDateTimeSerializationMode.Utc);

        case DateTimeKind.Local:
            return(XmlDateTimeSerializationMode.Local);

        default:
            throw Class80.smethod_1("kind", dateTimeKind_0, "Unexpected DateTimeKind value.");
        }
    }
Exemple #22
0
    // Token: 0x060006BA RID: 1722 RVA: 0x00038E6C File Offset: 0x0003706C
    public override Class80 vmethod_3(Class80 class80_0)
    {
        base.method_1(class80_0.method_0());
        int num = class80_0.vmethod_2();

        if (num != 21)
        {
            if (num != 22)
            {
                throw new ArgumentOutOfRangeException();
            }
            this.method_3(((Class96)class80_0).method_2());
        }
        else
        {
            this.method_3((string)((Class90)class80_0).method_2());
        }
        return(this);
    }
Exemple #23
0
 protected internal override void vmethod_0(Class80 reader)
 {
     ns1.Class73 class73 = new ns1.Class73(reader);
     foreach (int glyphIndex1 in reader.IndexMappings.GlyphIndices)
     {
         Class47 class47 = class73.method_0(glyphIndex1);
         this.idictionary_0[class47.Index] = class47;
         if (class47.IsComposite)
         {
             foreach (int child in (IEnumerable <int>)class47.Children)
             {
                 if (this[child] == null)
                 {
                     int glyphIndex2 = reader.IndexMappings.method_4(child);
                     this[child] = class73.method_0(glyphIndex2);
                 }
             }
         }
     }
 }
Exemple #24
0
        public virtual bool vmethod_1()
        {
            bool flag  = false;
            int  index = 0;

            while (index < this.ilist_0.Count)
            {
                Class80 class80 = this.ilist_0[index];
                if (!(class80 is Class161) && !(class80 is Class159))
                {
                    ++index;
                }
                else
                {
                    flag = true;
                    this.method_0((Class113)class80);
                }
            }
            return(flag);
        }
Exemple #25
0
        internal Class42(ns4.Class53 dc, ns1.Class78 currentFont)
        {
            if (dc.Handle == IntPtr.Zero)
            {
                throw new ArgumentNullException(nameof(dc), "Handle to device context cannot be null");
            }
            if (dc.method_1(ns1.Enum0.const_3) == IntPtr.Zero)
            {
                throw new ArgumentException("No font selected into supplied device context", nameof(dc));
            }
            this.class53_0 = dc;
            this.class78_0 = currentFont;
            StringBuilder lpFaceName = new StringBuilder((int)byte.MaxValue);

            Class61.GetTextFace(dc.Handle, lpFaceName.Capacity, lpFaceName);
            this.string_0  = lpFaceName.ToString();
            this.class52_0 = new Class52(dc);
            this.class80_0 = new Class80(new MemoryStream(this.method_0()), this.string_0);
            this.class66_0 = new ns10.Class66(this.EmSquare);
            currentFont.Dispose();
        }
Exemple #26
0
        private Class80 method_5(Interface8 reader)
        {
            if (reader.imethod_4(this.ilist_0.Count) != this.ilist_0.Count)
            {
                throw new Exception0("Unexpected entity index");
            }
            string str = reader.imethod_14();

            if (str == null || "End-of-ACIS-data".Equals(str) || "End-of-ASM-data".Equals(str))
            {
                return((Class80)null);
            }
            Class795.Delegate18 delegate18;
            Class80             class80;

            if (!Class795.dictionary_0.TryGetValue(str, out delegate18))
            {
                string key = str;
                for (int index = key.IndexOf(Class795.char_0); index >= 0 && index + 1 < key.Length; index = key.IndexOf(Class795.char_0))
                {
                    key = key.Substring(index + 1);
                    if (Class795.dictionary_0.TryGetValue(key, out delegate18))
                    {
                        break;
                    }
                }
                Class80 basicEntity = delegate18 != null?delegate18() : new Class80();

                class80 = (Class80) new Class94(str, basicEntity);
            }
            else
            {
                class80 = delegate18();
            }
            class80.imethod_0(reader);
            class80.Index = this.ilist_0.Count;
            return(class80);
        }
Exemple #27
0
    // Token: 0x060007F3 RID: 2035 RVA: 0x00046560 File Offset: 0x00044760
    public override Class80 vmethod_3(Class80 class80_0)
    {
        base.method_1(class80_0.method_0());
        int num = class80_0.vmethod_2();

        if (num != 12)
        {
            if (num != 21)
            {
                this.method_3(class80_0.vmethod_0());
            }
            else
            {
                this.method_3(((Class90)class80_0).method_2());
            }
        }
        else if (this.method_2() != null)
        {
            object obj  = ((Class107)class80_0).method_2();
            Type   type = this.method_2().GetType();
            if (obj != null && !type.IsPrimitive && !type.IsEnum && type.IsAssignableFrom(obj.GetType()))
            {
                foreach (FieldInfo fieldInfo in type.GetFields(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy | BindingFlags.GetField | BindingFlags.SetField))
                {
                    fieldInfo.SetValue(this.method_2(), fieldInfo.GetValue(obj));
                }
            }
            else
            {
                this.method_3(obj);
            }
        }
        else
        {
            this.method_3(((Class107)class80_0).method_2());
        }
        return(this);
    }
Exemple #28
0
        protected internal override void vmethod_0(Class80 reader)
        {
            Class74 stream       = reader.Stream;
            int     hmetricCount = reader.method_5().HMetricCount;
            int     glyphCount   = reader.method_4().GlyphCount;
            int     capacity     = glyphCount > hmetricCount ? glyphCount : hmetricCount;

            this.ilist_0 = (IList <Class57>) new List <Class57>(capacity);
            for (int index = 0; index < hmetricCount; ++index)
            {
                this.ilist_0.Add(new Class57(stream.method_8(), stream.method_4()));
            }
            if (hmetricCount >= capacity)
            {
                return;
            }
            Class57 class57 = this.ilist_0[this.ilist_0.Count - 1];

            for (int index = hmetricCount; index < glyphCount; ++index)
            {
                this.ilist_0.Add(new Class57(class57.AdvanceWidth, stream.method_4()));
            }
        }
Exemple #29
0
        protected internal override void vmethod_0(Class80 reader)
        {
            Class74 stream = reader.Stream;

            this.int_0    = stream.method_16();
            this.short_0  = stream.method_6();
            this.short_1  = stream.method_6();
            this.short_2  = stream.method_6();
            this.ushort_0 = stream.method_10();
            this.short_3  = stream.method_6();
            this.short_4  = stream.method_6();
            this.short_5  = stream.method_6();
            this.short_6  = stream.method_4();
            this.short_7  = stream.method_4();
            this.short_8  = stream.method_4();
            int num1 = (int)stream.method_4();
            int num2 = (int)stream.method_4();
            int num3 = (int)stream.method_4();
            int num4 = (int)stream.method_4();

            this.short_9  = stream.method_4();
            this.ushort_1 = stream.method_8();
        }
Exemple #30
0
        protected internal override void vmethod_0(Class80 reader)
        {
            Class74 stream = reader.Stream;

            this.int_0    = stream.method_16();
            this.ushort_0 = stream.method_8();
            if (this.int_0 != 65536)
            {
                return;
            }
            this.ushort_1  = stream.method_8();
            this.ushort_2  = stream.method_8();
            this.ushort_3  = stream.method_8();
            this.ushort_4  = stream.method_8();
            this.ushort_5  = stream.method_8();
            this.ushort_6  = stream.method_8();
            this.ushort_7  = stream.method_8();
            this.ushort_8  = stream.method_8();
            this.ushort_9  = stream.method_8();
            this.ushort_10 = stream.method_8();
            this.ushort_11 = stream.method_8();
            this.ushort_12 = stream.method_8();
            this.ushort_13 = stream.method_8();
        }