Convert a little-endian buffer to BigInt.
Little-endian byte buffer
BigInt value
const buffer = new Uint8Array([0x04, 0x03, 0x02, 0x01]);const num = toBigIntLE(buffer); // 16909060n Copy
const buffer = new Uint8Array([0x04, 0x03, 0x02, 0x01]);const num = toBigIntLE(buffer); // 16909060n
Convert a little-endian buffer to BigInt.