Convert bigendian bytes to a bigint, using a DataView, which is faster than going a byte at a time, but a lot slower than the toHex approach.
Buffer to convert.
BigInt version of buf.
Convert bigendian bytes to a bigint, using a DataView, which is faster than going a byte at a time, but a lot slower than the toHex approach.