没有合适的资源?快使用搜索试试~ 我知道了~
shared-structs:在C和JavaScript之间共享由相同的基础缓冲区支持的结构
共14个文件
js:7个
json:2个
c:1个
需积分: 9 0 下载量 24 浏览量
2021-05-04
05:32:14
上传
评论
收藏 11KB ZIP 举报
温馨提示
共享结构 在C和JavaScript之间共享由相同的基础缓冲区支持的结构 npm install shared-structs 无需进行上下文切换即可在本地模块中对数据进行批量更新时非常有用。 用法 const sharedStructs = require ( 'shared-structs' ) const structs = sharedStructs ( ` struct aStruct { int32_t i; char buf[1024]; char someChar; int someInt; } ` ) const struct = structs . aStruct ( ) struct . i = 42 struct . buf [ 0 ] = 42 // pass this to c, and it will be able t
资源推荐
资源详情
资源评论
收起资源包目录
shared-structs-master.zip (14个子文件)
shared-structs-master
.gitignore 30B
README.md 3KB
require.js 387B
test
compile.js 2KB
parse.js 2KB
LICENSE 1KB
string.js 545B
package.json 674B
index.js 4KB
example
binding.c 544B
example.js 495B
binding.gyp 370B
package.json 290B
parse.js 6KB
共 14 条
- 1
资源评论
沐水涤尘
- 粉丝: 24
- 资源: 4626
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功