• offset {integer} 开始读取之前要跳过的字节数。必须满足:0 <= offset <= buf.length - 8默认值: 0
    • 返回: {bigint}

    buf 中指定的 offset 读取一个无符号大端序的 64 位整数值。

    1. const buf = Buffer.from([0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff]);
    2. console.log(buf.readBigUInt64BE(0));
    3. // 打印: 4294967295n