offset{integer} 开始读取之前要跳过的字节数。必须满足:0 <= offset <= buf.length - 8。默认值:0。- 返回: {number}
从 buf 中指定的 offset 读取一个 64 位的大端序双精度值。
const buf = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8]);console.log(buf.readDoubleBE(0));// 打印: 8.20788039913184e-304
offset {integer} 开始读取之前要跳过的字节数。必须满足:0 <= offset <= buf.length - 8。默认值: 0。从 buf 中指定的 offset 读取一个 64 位的大端序双精度值。
const buf = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8]);console.log(buf.readDoubleBE(0));// 打印: 8.20788039913184e-304
若有收获,就点个赞吧
0 人点赞
让时间为你证明