Skip to main content
Module

std/encoding/hex.ts>encodedLen

Deno standard library
Go to Latest
function encodedLen
import { encodedLen } from "https://deno.land/std@0.80.0/encoding/hex.ts";

EncodedLen returns the length of an encoding of n source bytes. Specifically, it returns n * 2.

Parameters

n: number

Returns

number