Skip to main content
Module

x/somefn/js/int.ts>u8aToInt

some functions for deno and browser
Latest
function u8aToInt
import { u8aToInt } from "https://deno.land/x/somefn@v0.1.1-jsr/js/int.ts";

Uint8Array to number

  • [ 0, 0, 0, 25 ] => 25
  • [ 1, 145 ] => 401

Parameters

u8a: Uint8Array

一个 Uint8Array 格式的数据.

Returns

number

一个十进制整数.