moonbit-c-binding

分类: 内容与多媒体 | 上传者: moonbitlangmoonbitlang | 下载: 0 | 版本: v1.0(最新)

使用本机 FFI 将 MoonBit 绑定写入 C 库的指南。在添加 extern "c" 声明、使用 Moonbit.h 编写 C 存根、在 Moon.pkg 或 Moon.pkg.json 中配置 native-stub 和 link.native、选择 #borrow/#owned 所有权注释、设计回调蹦床、使用外部对象和终结器包装 C 指针、跨 FFI 转换字符串或使用 AddressSanitizer 验证绑定时使用。

更新日志: Source: GitHub https://github.com/moonbitlang/skills

目录结构

当前层级: tree/master/skills/moonbit-c-binding/

  • 📁 references/
    • 📄 asan-validation.md 6.0 KB
    • 📄 callbacks.md 2.0 KB
    • 📄 including-c-sources.md 3.2 KB
    • 📄 ownership-and-memory.md 3.8 KB
  • 📁 scripts/
    • 📄 .gitignore 13 B
    • 📄 run-asan.py 22.7 KB
  • 📄 SKILL.md 11.9 KB

SKILL.md

登录后下载/点赞/收藏 ❤ 18 | ★ 0
评论 0

请先登录后评论。

评论加载中...