public static long EnumTest(__arglist)
    {
        ArgIterator args = new ArgIterator(__arglist);
        long        S    = 0;

        while (args.GetRemainingCount() > 0)
        {
            if (args.GetNextArgType().Equals(typeof(Enum1).TypeHandle))
            {
                Enum1 e = __refvalue(args.GetNextArg(), Enum1);
                Console.WriteLine("Got Enum1, value = " + e + " = " + (long)e);
                S += (long)e;
            }
            if (args.GetNextArgType().Equals(typeof(Enum8).TypeHandle))
            {
                Enum8 e = __refvalue(args.GetNextArg(), Enum8);
                Console.WriteLine("Got Enum8, value = " + e + " = " + (long)e);
                S += (long)e;
            }
            if (args.GetNextArgType().Equals(typeof(Enum16).TypeHandle))
            {
                Enum16 e = __refvalue(args.GetNextArg(), Enum16);
                Console.WriteLine("Got Enum16, value = " + e + " = " + (long)e);
                S += (long)e;
            }
            if (args.GetNextArgType().Equals(typeof(Enuml).TypeHandle))
            {
                Enuml e = __refvalue(args.GetNextArg(), Enuml);
                Console.WriteLine("Got Enuml, value = " + e + " = " + (long)e);
                S += (long)e;
            }
        }
        return(S);
    }
Exemplo n.º 2
0
        public static IList <string> smethod_1(IntPtr intptr_0, Enum8 enum8_0)
        {
            List <string> list          = new List <string>();
            IntPtr        ptr           = OpenAL.alcGetString(IntPtr.Zero, (Enum7)enum8_0);
            StringBuilder stringBuilder = new StringBuilder();
            int           ofs           = 0;

            while (true)
            {
                byte b = Marshal.ReadByte(ptr, ofs++);
                if (b != 0)
                {
                    stringBuilder.Append((char)b);
                }
                if (b == 0)
                {
                    list.Add(stringBuilder.ToString());
                    if (Marshal.ReadByte(ptr, ofs) == 0)
                    {
                        break;
                    }
                    stringBuilder.Remove(0, stringBuilder.Length);
                }
            }
            return(list);
        }
Exemplo n.º 3
0
 public static IList<string> smethod_1(IntPtr intptr_0, Enum8 enum8_0)
 {
     List<string> list = new List<string>();
     IntPtr ptr = OpenAL.alcGetString(IntPtr.Zero, (Enum7)enum8_0);
     StringBuilder stringBuilder = new StringBuilder();
     int ofs = 0;
     while (true)
     {
         byte b = Marshal.ReadByte(ptr, ofs++);
         if (b != 0)
         {
             stringBuilder.Append((char)b);
         }
         if (b == 0)
         {
             list.Add(stringBuilder.ToString());
             if (Marshal.ReadByte(ptr, ofs) == 0)
             {
                 break;
             }
             stringBuilder.Remove(0, stringBuilder.Length);
         }
     }
     return list;
 }
Exemplo n.º 4
0
 static Class93()
 {
     object_0 = new object();
     object_1 = new object();
     enum8_0  = (Enum8)0;
     enum8_1  = (Enum8)0;
 }
Exemplo n.º 5
0
 // Token: 0x060011A4 RID: 4516 RVA: 0x000037AC File Offset: 0x000019AC
 public void StringCollectionChange(object pdispStringCollection, Enum8 change, int lCollectionIndex)
 {
     if (this.delegate60_0 != null)
     {
         this.delegate60_0(pdispStringCollection, change, lCollectionIndex);
         return;
     }
 }
Exemplo n.º 6
0
 // Token: 0x0600133E RID: 4926 RVA: 0x00004B71 File Offset: 0x00002D71
 public Class29(object object_1, Enum8 enum8_1, int int_1)
 {
     this.object_0 = object_1;
     this.enum8_0  = enum8_1;
     this.int_0    = int_1;
 }
Exemplo n.º 7
0
 public Attribute10(Enum7 useKindFlags, Enum8 targetFlags)
 {
     this.Enum7_0 = useKindFlags;
     this.Enum8_0 = targetFlags;
 }
Exemplo n.º 8
0
 public Attribute10(Enum8 targetFlags) : this(Enum7.Default, targetFlags)
 {
 }
Exemplo n.º 9
0
        // Token: 0x06001439 RID: 5177 RVA: 0x00024BD0 File Offset: 0x00022DD0
        public void StringCollectionChange(object pdispStringCollection, Enum8 change, int lCollectionIndex)
        {
            Class29 class29_ = new Class29(pdispStringCollection, change, lCollectionIndex);

            this.class24_0.method_5(this.class24_0, class29_);
        }