... 不会被'\0' 截断从lua 传入c 时: 需要传入包含二进制数据的string 和数据的size, size 用string.len(str) 来计算从c 传入lua 时: 应该使用lua_pushlstring.
確定! 回上一頁