buffer: add {read|write}Big[U]Int64{BE|LE} methods
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
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines