ref-napi:将Buffer实例转换为“指针”

上传者: 42131618 | 上传时间: 2022-06-19 15:36:04 | 文件大小: 174KB | 文件类型: ZIP
ref-napi 将Buffer实例转换为“指针” 该模块的灵感来自于node-ffi中的旧Pointer类,但其目的是使用Node的快速Buffer实例而不是慢速的C ++ Pointer类。 这两个概念以前非常相似,但是现在这个模块带来了Pointers拥有的功能,而Buffers却不见了,所以现在Buffers的功能要强大得多。 特征: 获取任何Buffer实例的内存地址 将对JavaScript对象的引用读/写到Buffer实例中 将Buffer实例的内存地址读/写到其他Buffer实例 读取/写入int64_t和uint64_t数据值(数字或字符串) 一种“类型”约定,以便您可以将缓冲区指定为int * ,并随意引用/取消引用。 提供表示NULL指针的缓冲区实例 安装 使用npm安装: $ npm install ref-napi 例子 引用和取消引用 var ref

文件下载

资源详情

[{"title":"( 45 个子文件 174KB ) ref-napi:将Buffer实例转换为“指针”","children":[{"title":"ref-napi-latest","children":[{"title":"binding.gyp <span style='color:#111;'> 719B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"binding.cc <span style='color:#111;'> 21.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"lib","children":[{"title":"ref.js <span style='color:#111;'> 39.13KB </span>","children":null,"spread":false},{"title":"get-paths.js <span style='color:#111;'> 274B </span>","children":null,"spread":false}],"spread":true},{"title":".npmignore <span style='color:#111;'> 129B </span>","children":null,"spread":false},{"title":"code-of-conduct.md <span style='color:#111;'> 3.12KB </span>","children":null,"spread":false},{"title":".travis.yml <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"test","children":[{"title":"ref-deref.js <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false},{"title":"reinterpretUntilZeros.js <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false},{"title":"pointer.js <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false},{"title":"reinterpret.js <span style='color:#111;'> 2.19KB </span>","children":null,"spread":false},{"title":"utf16le.bin <span style='color:#111;'> 73.80KB </span>","children":null,"spread":false},{"title":"int64.js <span style='color:#111;'> 5.52KB </span>","children":null,"spread":false},{"title":"uint64.js <span style='color:#111;'> 4.63KB </span>","children":null,"spread":false},{"title":"object.js <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"alloc.js <span style='color:#111;'> 424B </span>","children":null,"spread":false},{"title":"coerce.js <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false},{"title":"address.js <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false},{"title":"isNull.js <span style='color:#111;'> 389B </span>","children":null,"spread":false},{"title":"string.js <span style='color:#111;'> 3.30KB </span>","children":null,"spread":false},{"title":"char.js <span style='color:#111;'> 406B </span>","children":null,"spread":false},{"title":"types.js <span style='color:#111;'> 2.64KB </span>","children":null,"spread":false},{"title":"bool.js <span style='color:#111;'> 867B </span>","children":null,"spread":false},{"title":"iojs3issue.js <span style='color:#111;'> 616B </span>","children":null,"spread":false}],"spread":false},{"title":"README.md <span style='color:#111;'> 6.73KB </span>","children":null,"spread":false},{"title":"docs","children":[{"title":"compile.js <span style='color:#111;'> 3.68KB </span>","children":null,"spread":false},{"title":"gh-pages.sh <span style='color:#111;'> 302B </span>","children":null,"spread":false},{"title":"images","children":[{"title":"apple-touch-icon-114x114.png <span style='color:#111;'> 7.92KB </span>","children":null,"spread":false},{"title":"ref.pxm <span style='color:#111;'> 60.35KB </span>","children":null,"spread":false},{"title":"favicon.ico <span style='color:#111;'> 42.55KB </span>","children":null,"spread":false},{"title":"apple-touch-icon.png <span style='color:#111;'> 4.52KB </span>","children":null,"spread":false},{"title":"apple-touch-icon-72x72.png <span style='color:#111;'> 5.52KB </span>","children":null,"spread":false}],"spread":true},{"title":"scripts","children":[{"title":"main.js <span style='color:#111;'> 572B </span>","children":null,"spread":false},{"title":"jquery-3.5.1.min.js <span style='color:#111;'> 87.38KB </span>","children":null,"spread":false}],"spread":true},{"title":"stylesheets","children":[{"title":"layout.css <span style='color:#111;'> 4.19KB </span>","children":null,"spread":false},{"title":"hightlight.css <span style='color:#111;'> 62B </span>","children":null,"spread":false},{"title":"skeleton.css <span style='color:#111;'> 9.61KB </span>","children":null,"spread":false},{"title":"base.css <span style='color:#111;'> 8.81KB </span>","children":null,"spread":false}],"spread":false},{"title":"index.jade <span style='color:#111;'> 9.11KB </span>","children":null,"spread":false}],"spread":true},{"title":"appveyor.yml <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 152B </span>","children":null,"spread":false},{"title":"CHANGELOG.md <span style='color:#111;'> 13.61KB </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"include","children":[{"title":"ref-napi.h <span style='color:#111;'> 464B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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