示例#1
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);
        }
示例#2
0
 public static string smethod_0(IntPtr intptr_0, Enum7 enum7_0)
 {
     return(Marshal.PtrToStringAnsi(OpenAL.alcGetString(intptr_0, enum7_0)));
 }