buf.writeInt16BE()函数详解
buf.writeInt16BE(value, offset[, noAssert])
buf.writeInt16LE(value, offset[, noAssert])
- value {Number} 需要被写入到 Buffer 的字节
- offset {Number} 0 <= offset <= buf.length - 2
- noAssert {Boolean} 默认:false
- 返回:{Number} 偏移加上被写入的字节数
buf.writeInt16BE(value, offset[, noAssert])
buf.writeInt16LE(value, offset[, noAssert])