会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
就当笔记吧
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
48
下一页
2025年7月6日
luacurl源码阅读3 - binding函数(成员函数)
摘要: 注册在curlT表下,可以看作curlT类的成员函数 static const struct luaL_reg luacurl_meths[] = { {"close", lcurl_easy_close}, {"setopt", lcurl_easy_setopt}, {"perform", lc
阅读全文
posted @ 2025-07-06 13:28 yanghui01
阅读(25)
评论(0)
推荐(0)
2025年7月5日
luacurl源码阅读2 - binding函数(static函数)
摘要: 注册在curl表下,可以看作curl类的static函数 static const struct luaL_reg luacurl_funcs[] = { {"new", lcurl_easy_init}, {"escape", lcurl_escape}, {"unescape", lcurl_u
阅读全文
posted @ 2025-07-05 15:52 yanghui01
阅读(20)
评论(0)
推荐(0)
c语言中使用curl
摘要: #include <stdio.h> #include <curl/curl.h> #include <lauxlib.h> // 回调函数,用于处理响应数据 size_t write_callback(void *contents, size_t size, size_t nmemb, char
阅读全文
posted @ 2025-07-05 08:38 yanghui01
阅读(75)
评论(0)
推荐(0)
luacurl源码阅读1 - 入口函数
摘要: 从入口函数开始 LUACURL_API int luaopen_luacurl (lua_State *L) { printf("luaopen_luacurl begin: %d, %s\n", lua_gettop(L), lua_typename(L, lua_type(L, -1))); /
阅读全文
posted @ 2025-07-05 08:22 yanghui01
阅读(34)
评论(0)
推荐(0)
2025年7月1日
xlua - lua协程模拟Unity协程
摘要: 目的:能在lua中像下面这样方便的使用协程 public class CoTest : MonoBehaviour { void Start() { var enu = MyCo(); StartCoroutine(enu); } IEnumerator MyCo() { Debug.Log($"f
阅读全文
posted @ 2025-07-01 00:13 yanghui01
阅读(101)
评论(0)
推荐(0)
2025年5月20日
Unity刘海适配
摘要: 原理 根据刘海的信息,设置好安全区域,然后把ui都相对安全区域来显示。 比如:屏幕宽高为1334x750,刘海大小为:左60,右50,上0,下40,那安全区域就是(1334-60-50)x(750-0-40),即:1224x710 如果不做安全区域适配,就会像下面这样显示(边缘的灰色代表有刘海),u
阅读全文
posted @ 2025-05-20 00:17 yanghui01
阅读(403)
评论(0)
推荐(0)
2025年5月10日
Android Studio SDK Update Sites无法访问问题
摘要: 问题 Android SDK页面不正常,无法下载sdk和android开发工具等 1, 加载不出来 2, 加载出来但有错误图标 3, 加载出来全是错误图标 原因 dl.google.com这个域名无法解析到ip 解决办法 在host文件中(路径:C:\Windows\System32\drivers
阅读全文
posted @ 2025-05-10 00:07 yanghui01
阅读(765)
评论(1)
推荐(1)
2025年5月7日
Unity2019导出Android项目编译
摘要: 这边将导出项目在最新的Android Studio(Meerkat | 2024.3.1)下编译,由于Unity2019导出的项目配置比较老,所以需要对gradle配置做相关调整。 1、导出 菜单 -> File -> Build Settings 选择导出文件夹,导出成功后 2、用Android
阅读全文
posted @ 2025-05-07 23:13 yanghui01
阅读(236)
评论(0)
推荐(0)
2025年3月12日
luaL_openlib
摘要: LUALIB_API void (luaL_openlib) (lua_State *L, const char *libname, const luaL_Reg *l, int nup); libname不为NULL, nup>0时 a) libname不为NULL, 则创建一个table(lib
阅读全文
posted @ 2025-03-12 23:12 yanghui01
阅读(138)
评论(0)
推荐(0)
2025年2月19日
lua全局表
摘要: lua的几个全局表存放在这几个索引上,前2个无法在lua脚本中直接访问,第3个等同于lua脚本的_G mylib.c #include <string.h> #include <stdlib.h> #include <lauxlib.h> #if !defined(LUA_VERSION_NUM)
阅读全文
posted @ 2025-02-19 22:10 yanghui01
阅读(35)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
48
下一页
公告