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

x/willow/src/wgps/encoding/util.ts>compactWidthOr

A Willow Data Model and Willow General Purpose Sync protocol implementation in TypeScript.
Latest
function compactWidthOr
import { compactWidthOr } from "https://deno.land/x/willow@0.3.5/src/wgps/encoding/util.ts";

Parameters

byte: number
compactWidth:
| 1
| 2
| 4
| 8

Returns

number