cffi-lua:适用于Lua 5.1+的便携式C FFI

上传者: 42102272 | 上传时间: 2025-05-12 16:01:41 | 文件大小: 128KB | 文件类型: ZIP
cffi-lua 这是一个基于libffi Lua便携式C FFI,旨在与LuaJIT FFI大部分兼容,但是是从头开始编写的。 在合理的地方保留兼容性,但在不容易实现的地方保留兼容性(例如,用于64位cdata的解析器扩展,等等)。 感谢libffi ,它可以在许多操作系统和CPU架构上运行。 cffi-lua代码库本身不包含任何不可移植的代码(Windows调用x86上的约定处理以及对大端字节体系结构的某些调整除外)。 尽管还没有经过测试或保证可以正常工作(如果补丁损坏,则欢迎使用补丁程序),因此还付出了一些努力以确保与自定义Lua配置(例如更改的数字类型表示形式)兼容。 与LuaJIT的ffi模块或其他类似luaffifb努力luaffifb ,它可与参考Lua实现的每个常见版本(当前可以支持5.1、5.2、5.3和luaffifb )一起使用,并且兼容非参考对象(例如LuaJI

文件下载

资源详情

[{"title":"( 62 个子文件 128KB ) cffi-lua:适用于Lua 5.1+的便携式C FFI","children":[{"title":"cffi-lua-master","children":[{"title":".gitignore <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"STATUS.md <span style='color:#111;'> 5.37KB </span>","children":null,"spread":false},{"title":"luarocks","children":[{"title":"build.sh <span style='color:#111;'> 828B </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"parser.hh <span style='color:#111;'> 491B </span>","children":null,"spread":false},{"title":"ffi.hh <span style='color:#111;'> 20.96KB </span>","children":null,"spread":false},{"title":"util.cc <span style='color:#111;'> 1.48KB </span>","children":null,"spread":false},{"title":"main.cc <span style='color:#111;'> 989B </span>","children":null,"spread":false},{"title":"lib.cc <span style='color:#111;'> 10.10KB </span>","children":null,"spread":false},{"title":"ast.cc <span style='color:#111;'> 45.57KB </span>","children":null,"spread":false},{"title":"parser.cc <span style='color:#111;'> 84.12KB </span>","children":null,"spread":false},{"title":"lua.cc <span style='color:#111;'> 58B </span>","children":null,"spread":false},{"title":"ast.hh <span style='color:#111;'> 28.96KB </span>","children":null,"spread":false},{"title":"lua.hh <span style='color:#111;'> 4.22KB </span>","children":null,"spread":false},{"title":"util.hh <span style='color:#111;'> 23.49KB </span>","children":null,"spread":false},{"title":"ffi.cc <span style='color:#111;'> 52.22KB </span>","children":null,"spread":false},{"title":"lib.hh <span style='color:#111;'> 415B </span>","children":null,"spread":false},{"title":"platform.hh <span style='color:#111;'> 7.58KB </span>","children":null,"spread":false},{"title":"ffilib.cc <span style='color:#111;'> 52.73KB </span>","children":null,"spread":false},{"title":"libffi.hh <span style='color:#111;'> 4.81KB </span>","children":null,"spread":false}],"spread":false},{"title":"COPYING.md <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"CHANGELOG.md <span style='color:#111;'> 1.78KB </span>","children":null,"spread":false},{"title":".github","children":[{"title":"workflows","children":[{"title":"build.yaml <span style='color:#111;'> 2.55KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"meson.build <span style='color:#111;'> 6.11KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 11.23KB </span>","children":null,"spread":false},{"title":".ci","children":[{"title":"install-env-windows <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 200B </span>","children":null,"spread":false},{"title":"build-cffi <span style='color:#111;'> 5.54KB </span>","children":null,"spread":false},{"title":"install-samu <span style='color:#111;'> 483B </span>","children":null,"spread":false},{"title":"install-env <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false},{"title":"build-cffi-windows <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false}],"spread":true},{"title":"cffi-lua-0.2.1-1.rockspec <span style='color:#111;'> 1.40KB </span>","children":null,"spread":false},{"title":"tests","children":[{"title":"runner.lua <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"scalar.lua <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false},{"title":"variadic.lua <span style='color:#111;'> 592B </span>","children":null,"spread":false},{"title":"abi.lua <span style='color:#111;'> 715B </span>","children":null,"spread":false},{"title":"redir.lua <span style='color:#111;'> 301B </span>","children":null,"spread":false},{"title":"struct_array.lua <span style='color:#111;'> 3.03KB </span>","children":null,"spread":false},{"title":"table_init.lua <span style='color:#111;'> 2.67KB </span>","children":null,"spread":false},{"title":"callconv.lua <span style='color:#111;'> 980B </span>","children":null,"spread":false},{"title":"istype.lua <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false},{"title":"testlib.lua <span style='color:#111;'> 140B </span>","children":null,"spread":false},{"title":"metatype.lua <span style='color:#111;'> 515B </span>","children":null,"spread":false},{"title":"meson.build <span style='color:#111;'> 2.63KB </span>","children":null,"spread":false},{"title":"cexpr.lua <span style='color:#111;'> 554B </span>","children":null,"spread":false},{"title":"struct_union_array_fields.lua <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"dump_string.lua <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"metatype54.lua <span style='color:#111;'> 572B </span>","children":null,"spread":false},{"title":"redef.lua <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"callbacks.lua <span style='color:#111;'> 971B </span>","children":null,"spread":false},{"title":"parameterized.lua <span style='color:#111;'> 924B </span>","children":null,"spread":false},{"title":"unionval.lua <span style='color:#111;'> 625B </span>","children":null,"spread":false},{"title":"copy_fill.lua <span style='color:#111;'> 577B </span>","children":null,"spread":false},{"title":"cast.lua <span style='color:#111;'> 596B </span>","children":null,"spread":false},{"title":"simple.lua <span style='color:#111;'> 336B </span>","children":null,"spread":false},{"title":"globals.lua <span style='color:#111;'> 537B </span>","children":null,"spread":false},{"title":"testlib.cc <span style='color:#111;'> 1.65KB </span>","children":null,"spread":false},{"title":"struct_pass.lua <span style='color:#111;'> 315B </span>","children":null,"spread":false}],"spread":false},{"title":"meson_options.txt <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"docs","children":[{"title":"introduction.md <span style='color:#111;'> 6.30KB </span>","children":null,"spread":false},{"title":"api.md <span style='color:#111;'> 16.32KB </span>","children":null,"spread":false},{"title":"syntax.md <span style='color:#111;'> 8.66KB </span>","children":null,"spread":false},{"title":"semantics.md <span style='color:#111;'> 26.21KB </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明