1 2 3 4 5 6 7 8 9 10 | 5x 5x 4x 5x | import { fromArray, BigInteger, } from 'big-integer'; export const uintArrayAsNumber = (uintArray: Uint8Array | Uint16Array | Uint32Array): BigInteger => ( fromArray(Array.from(uintArray), 256) ); export default uintArrayAsNumber; |