Пример #1
0
        public static int smethod_4(IntPtr intptr_0, Enum11 enum11_0)
        {
            int result;

            Class119.alGetSourcei(intptr_0, enum11_0, out result);
            return(result);
        }
Пример #2
0
        public static int smethod_4(IntPtr intptr0, Enum11 enum110)
        {
            int result;

            alGetSourcei(intptr0, enum110, out result);
            return(result);
        }
Пример #3
0
        private bool method_17()
        {
            switch (base.CurrentState)
            {
            case JsonReader.State.Start:
            {
                JsonToken newToken = !this.bool_2 ? JsonToken.StartObject : JsonToken.StartArray;
                Enum11    type     = !this.bool_2 ? Enum11.Object : Enum11.Array;
                base.SetToken(newToken);
                Class69 class2 = new Class69(type);
                this.method_19(class2);
                class2.int_0 = this.method_30();
                return(true);
            }

            case JsonReader.State.Complete:
            case JsonReader.State.Closed:
                return(false);

            case JsonReader.State.Property:
                this.method_21(this.enum11_0);
                return(true);

            case JsonReader.State.ObjectStart:
            case JsonReader.State.ArrayStart:
            case JsonReader.State.PostValue:
            {
                Class69 class3 = this.class69_0;
                if (class3 != null)
                {
                    int num = class3.int_0 - 1;
                    if (class3.int_1 < num)
                    {
                        if (class3.enum11_0 == Enum11.Array)
                        {
                            this.method_14();
                            this.method_21(this.enum11_0);
                            return(true);
                        }
                        base.SetToken(JsonToken.PropertyName, this.method_14());
                        return(true);
                    }
                    if (class3.int_1 != num)
                    {
                        throw JsonReaderException.smethod_1(this, "Read past end of current container context.");
                    }
                    if (this.method_20() != 0)
                    {
                        throw JsonReaderException.smethod_1(this, "Unexpected end of object byte value.");
                    }
                    this.method_18();
                    if (this.class69_0 != null)
                    {
                        this.method_33(class3.int_0);
                    }
                    JsonToken token2 = (class3.enum11_0 == Enum11.Object) ? JsonToken.EndObject : JsonToken.EndArray;
                    base.SetToken(token2);
                    return(true);
                }
                return(false);
            }

            case JsonReader.State.ConstructorStart:
            case JsonReader.State.Constructor:
            case JsonReader.State.Error:
            case JsonReader.State.Finished:
                return(false);
            }
            throw new ArgumentOutOfRangeException();
        }
Пример #4
0
 // Token: 0x0600110D RID: 4365
 // RVA: 0x0005A80C File Offset: 0x00058A0C
 internal int Initialize(GClass1 gclass1_1, Enum11 enum11_1, int int_35, int int_36, Enum13 enum13_1)
 {
     this.gclass1_0 = gclass1_1;
     this.gclass1_0.string_0 = null;
     if (int_35 < 9 || int_35 > 15)
     {
         throw new GException0("windowBits must be in the range 9..15.");
     }
     if (int_36 < 1 || int_36 > 9)
     {
         throw new GException0(string.Format("memLevel must be in the range 1.. {0}", 9));
     }
     this.gclass1_0.class137_0 = this;
     this.int_31 = int_35;
     this.int_33 = 1 << this.int_31;
     this.int_32 = this.int_33 - 1;
     this.int_3 = int_36 + 7;
     this.int_6 = 1 << this.int_3;
     this.int_4 = this.int_6 - 1;
     this.int_5 = (this.int_3 + 3 - 1) / 3;
     this.byte_1 = new byte[this.int_33 * 2];
     this.short_6 = new short[this.int_33];
     this.short_5 = new short[this.int_6];
     this.int_16 = 1 << int_36 + 6;
     this.byte_0 = new byte[this.int_16 * 4];
     this.int_2 = this.int_16 / 2;
     this.int_12 = 3 * this.int_16;
     this.enum11_0 = enum11_1;
     this.enum13_0 = enum13_1;
     this.sbyte_2 = 8;
     this.Reset();
     return 0;
 }
Пример #5
0
 // Token: 0x0600110C RID: 4364
 // RVA: 0x00010658 File Offset: 0x0000E858
 internal int Initialize(GClass1 gclass1_1, Enum11 enum11_1, int int_35, Enum13 enum13_1)
 {
     return this.Initialize(gclass1_1, enum11_1, int_35, 8, enum13_1);
 }
Пример #6
0
 // Token: 0x06001124 RID: 4388
 // RVA: 0x000106F4 File Offset: 0x0000E8F4
 public static Class137.Class138 smethod_0(Enum11 enum11_0)
 {
     return Class137.Class138.class138_0[(int)enum11_0];
 }
Пример #7
0
 private void method_22(object object_0, Enum11 enum11_0)
 {
     this.method_23(new Class73(object_0, enum11_0));
 }
Пример #8
0
 // Token: 0x06001126 RID: 4390
 // RVA: 0x000106FD File Offset: 0x0000E8FD
 public Stream4(Stream stream_0, Enum12 enum12_0, Enum11 enum11_0)
     : this(stream_0, enum12_0, enum11_0, false)
 {
 }
Пример #9
0
 public static int smethod_4(IntPtr intptr_0, Enum11 enum11_0)
 {
     int result;
     Class119.alGetSourcei(intptr_0, enum11_0, out result);
     return result;
 }
Пример #10
0
 public static extern void alGetSourcei(IntPtr sid, Enum11 param, out int value);
Пример #11
0
 // Token: 0x060010B2 RID: 4274 RVA: 0x0000DF12 File Offset: 0x0000C112
 public Class198(byte[] byte_0, Enum11 enum11_1)
 {
     Class202.ofdixO4zTbIfy();
     base..ctor(byte_0, (Enum13)5);
     this.method_5(enum11_1);
 }
Пример #12
0
 public void method_5(Enum11 enum11_1)
 {
     this.enum11_0 = enum11_1;
 }
Пример #13
0
 public Class73(object value, Enum11 type)
 {
     this.object_0 = value;
     this.enum11_0 = type;
 }
Пример #14
0
 public static void smethod_33(Enum11 enum11_1)
 {
     Class50.enum11_0 = enum11_1;
 }
Пример #15
0
 // Token: 0x06001127 RID: 4391
 // RVA: 0x00010709 File Offset: 0x0000E909
 public Stream4(Stream stream_0, Enum12 enum12_0, Enum11 enum11_0, bool bool_2)
 {
     this.stream5_0 = new Stream5(stream_0, enum12_0, enum11_0, Enum17.const_1, bool_2);
 }
Пример #16
0
        private void method_21(Enum11 enum11_1)
        {
            DateTime time;
            DateTime time2;

            switch (enum11_1)
            {
            case Enum11.Number:
            {
                double num = this.method_29();
                if (base.floatParseHandling_0 != FloatParseHandling.Decimal)
                {
                    base.SetToken(JsonToken.Float, num);
                    return;
                }
                base.SetToken(JsonToken.Float, Convert.ToDecimal(num, CultureInfo.InvariantCulture));
                return;
            }

            case Enum11.String:
            case Enum11.Symbol:
                base.SetToken(JsonToken.String, this.method_24());
                return;

            case Enum11.Object:
            {
                base.SetToken(JsonToken.StartObject);
                Class69 class2 = new Class69(Enum11.Object);
                this.method_19(class2);
                class2.int_0 = this.method_30();
                return;
            }

            case Enum11.Array:
            {
                base.SetToken(JsonToken.StartArray);
                Class69 class3 = new Class69(Enum11.Array);
                this.method_19(class3);
                class3.int_0 = this.method_30();
                return;
            }

            case Enum11.Binary:
                base.SetToken(JsonToken.Bytes, this.method_22());
                return;

            case Enum11.Undefined:
                base.SetToken(JsonToken.Undefined);
                return;

            case Enum11.Oid:
            {
                byte[] buffer = this.method_34(12);
                base.SetToken(JsonToken.Bytes, buffer);
                return;
            }

            case Enum11.Boolean:
            {
                bool flag = Convert.ToBoolean(this.method_20());
                base.SetToken(JsonToken.Boolean, flag);
                return;
            }

            case Enum11.Date:
                time = Class184.smethod_11(this.method_31());
                switch (this.DateTimeKindHandling)
                {
                case DateTimeKind.Unspecified:
                    time2 = DateTime.SpecifyKind(time, DateTimeKind.Unspecified);
                    goto Label_017F;

                case DateTimeKind.Local:
                    time2 = time.ToLocalTime();
                    goto Label_017F;
                }
                break;

            case Enum11.Null:
                base.SetToken(JsonToken.Null);
                return;

            case Enum11.Regex:
            {
                string str  = this.method_23();
                string str2 = this.method_23();
                string str3 = "/" + str + "/" + str2;
                base.SetToken(JsonToken.String, str3);
                return;
            }

            case Enum11.Reference:
                base.SetToken(JsonToken.StartObject);
                this.enum10_0 = Enum10.ReferenceStart;
                return;

            case Enum11.Code:
                base.SetToken(JsonToken.String, this.method_24());
                return;

            case Enum11.CodeWScope:
                base.SetToken(JsonToken.StartObject);
                this.enum10_0 = Enum10.CodeWScopeStart;
                return;

            case Enum11.Integer:
                base.SetToken(JsonToken.Integer, (long)this.method_30());
                return;

            case Enum11.TimeStamp:
            case Enum11.Long:
                base.SetToken(JsonToken.Integer, this.method_31());
                return;

            default:
                throw new ArgumentOutOfRangeException("type", "Unexpected BsonType value: " + enum11_1);
            }
            time2 = time;
Label_017F:
            base.SetToken(JsonToken.Date, time2);
        }
Пример #17
0
 private string method_14()
 {
     this.enum11_0 = this.method_32();
     return(this.method_23());
 }
Пример #18
0
 // Token: 0x0600117A RID: 4474
 // RVA: 0x00010A6B File Offset: 0x0000EC6B
 public int method_6(Enum11 enum11_1, bool bool_0)
 {
     this.enum11_0 = enum11_1;
     return this.method_0(bool_0);
 }
Пример #19
0
 public static extern void alGetSourcei(IntPtr sid, Enum11 param, out int value);
Пример #20
0
 // Token: 0x06001173 RID: 4467
 // RVA: 0x00010A0B File Offset: 0x0000EC0B
 public GClass1()
 {
     this.enum11_0 = Enum11.const_2;
     this.int_4 = 15;
     this.enum13_0 = Enum13.const_0;
 }