Skip to main content
Module

x/polkadot/mod.ts>util.compactAddLength

Package publishing for deno.land/x/polkadot
Go to Latest
function util.compactAddLength
import { util } from "https://deno.land/x/polkadot@0.2.12/mod.ts";
const { compactAddLength } = util;

Examples

import { compactAddLength } from 'https://deno.land/x/polkadot@0.2.12/util/mod.ts';

console.log(compactAddLength(new Uint8Array([0xde, 0xad, 0xbe, 0xef]))); // Uint8Array([4 << 2, 0xde, 0xad, 0xbe, 0xef])

Parameters

input: Uint8Array

Returns

Uint8Array