buf.readBigUInt64LE([offset])
从 buf 在指定的 offset 处读取一个无符号、小端字节序的 64 位整数。
【Reads an unsigned, little-endian 64-bit integer from buf at the specified
offset.】
这个函数也可以通过 readBigUint64LE 别名使用。
【This function is also available under the readBigUint64LE alias.】
import { Buffer } from 'node:buffer';
const buf = Buffer.from([0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff]);
console.log(buf.readBigUInt64LE(0));
// Prints: 18446744069414584320nconst { Buffer } = require('node:buffer');
const buf = Buffer.from([0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff]);
console.log(buf.readBigUInt64LE(0));
// Prints: 18446744069414584320n