byte-matcher:字节匹配节点中另一个缓冲区中的缓冲区

时间:2021-07-04 08:31:03
【文件属性】:
文件名称:byte-matcher:字节匹配节点中另一个缓冲区中的缓冲区
文件大小:4KB
文件格式:ZIP
更新时间:2021-07-04 08:31:03
JavaScript 字节匹配器 用于在缓冲区中查找二进制匹配项的简单模块/函数。 此函数采用缓冲区和目标缓冲区(或转换为缓冲区的字符串)在第一个缓冲区内进行匹配。 一旦缓冲区中的所有字节都被插入,一个包含开始索引、结束和/或游标值的对象数组将被返回。 安装: $ (sudo) npm install byte-matcher 用法: var byteMatcher = require ( 'byte-matcher' ) , bufferToSearch = new Buffer ( 'to find the thing' ) , bufferToMatch = new Buffer ( 'target to match' ) var matches = byteMatcher ( buffertoSearch , bufferToMatch [ , startingBufferIndex ]
【文件预览】:
byte-matcher-master
----test.js(3KB)
----package.json(504B)
----byte-matcher.js(2KB)
----.gitignore(22B)
----README.md(3KB)

网友评论