【文件属性】:
文件名称:btop:给定`op`,`dtype`和`endian`来获取`Buffer`操作的名称
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-24 10:34:26
JavaScript
顶
获取给定的Buffer操作的名称:
op :“读”或“写”
dtype :
endian :“小”或“大”
安装
使用 ,执行:
npm i --save btop
用法
btop(opts)将基于给定的op , dtype和endian选项返回以下Buffer操作名称:
Buffer操作名称
运
dtype
尾数
readInt8
读
int8
小的
readUInt8
读
uint8
小的
readInt16LE
读
int16
小的
readUInt16LE
读
uint16
小的
readInt32LE
读
int32
小的
readUInt32LE
读
uint32
小的
readFloatLE
读
float32
小的
readDoubleLE
读
float64
小的
readInt8
读
int8
大的
readUInt8
【文件预览】:
btop-master
----index.js(898B)
----test.js(3KB)
----package.json(575B)
----.gitignore(29B)
----README.md(2KB)