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

x/willow_utils/src/encoding/encoding.ts>max32Width

TypeScript typings and utilities for the Willow protocol.
Go to Latest
function max32Width
import { max32Width } from "https://deno.land/x/willow_utils@0.8.0/src/encoding/encoding.ts";

Returns the maximum number of octets needed to store an unsigned integer.

Parameters

num: number

Returns

| 1
| 2
| 3
| 4