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

std/encoding/hex.ts>encodedLen

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function encodedLen
import { encodedLen } from "https://deno.land/std@0.94.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