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

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

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

Encodes a number as a UintMax, with Max being the maximum number of octets needed to represent the unsigned integer

Parameters

num: number
max: number

Returns

Uint8Array