function sliceLongToBytes(
  d,
  dest = new Array(8),
) {
  let big = BigInt(d);
  for (let i = 0; i < 8; i++) {
    dest[7 - i] = Number(big & 255n);
    big >>= 8n;
  }
  return dest;
}
/** Slice number into 64bit big endian byte array */
Slice number into 64bit big endian byte array
Slice number into 64bit big endian byte array
function sliceLongToBytes(
  d,
  dest = new Array(8),
) {
  let big = BigInt(d);
  for (let i = 0; i < 8; i++) {
    dest[7 - i] = Number(big & 255n);
    big >>= 8n;
  }
  return dest;
}
function sliceLongToBytes ( d , dest = new Array ( 8 ) , ) { let big = BigInt ( d ) ; for ( let i = 0 ; i < 8 ; i ++ ) { dest [ 7 - i ] = Number ( big & 255n ) ; big >>= 8n ; } return dest ; }
Slice number into 64bit big endian byte array
Slice number into 64bit big endian byte array