Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/willow/deps.ts>decodeCompactWidth

Exploring Willow in the most efficient and sound programming language
Go to Latest
function decodeCompactWidth
Re-export
import { decodeCompactWidth } from "https://deno.land/x/willow@0.2.1/deps.ts";

Decode a variable width integer. Uses the bytelength of the passed encoding to determine the compact width.

Parameters

encoded: Uint8Array

Returns

number | bigint