public static string ToString(IntPtr L, int i) { IntPtr str = LuaAPI.ToString(L, i); return(Marshal.PtrToStringAnsi(str)); }