Converts a Uint8Array of bytes to a number.
import { bytesToNumber } from "thirdweb/utils";const bytes = new Uint8Array([1, 164]);const number = bytesToNumber(bytes);console.log(number); // 420
function bytesToNumber( bytes: Uint8Array<ArrayBufferLike>, opts: BytesToBigIntOpts,): number;
The Uint8Array of bytes to convert.
let bytes: Uint8Array<ArrayBufferLike>;
Optional configuration options.
let opts: { signed?: boolean; size?: number };
let returnType: number;
The converted number.