Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/somefn/js/int.ts>u8aToInt

some functions for deno
Go to Latest
function u8aToInt
import { u8aToInt } from "https://deno.land/x/somefn@v0.27.0/js/int.ts";

Uint8Array to number

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

Parameters

u8a: Uint8Array

一个 Uint8Array 格式的数据.

Returns

number

一个十进制整数.