Skip to content

buffer: add {read|write}Big[U]Int64{BE|LE} methods

Rodrigo Muino Tomonari requested to merge github/fork/seishun/buffer64 into master

This is a resurrection of #15152, this time with BigInts.

The functions writeBigU_Int64LE and writeBigU_Int64BE look so terrible because setting Uint8Array values to BigInt is disallowed by the spec. I submitted an issue about it in https://github.com/tc39/proposal-bigint/issues/137. Please 👍 it or whatever if you agree.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading