Tag: 32位

如何读取Node.js缓冲区上的UInt64 Double?

我想读一个UInt64BE并将其转换为Double 。 我怎样才能做到这一点? 我将Double转换为UInt64BE ,如下所示: var time = Date.now(); buffer.writeUInt32BE(parseInt(time / 0xffffffff, 10), 0); buffer.writeUInt32BE(parseInt(time & 0xffffffff, 10), 4);