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

std/encoding/hex.ts>decodedLen

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function decodedLen
import { decodedLen } from "https://deno.land/std@0.56.0/encoding/hex.ts";

DecodedLen returns the length of a decoding of x source bytes. Specifically, it returns x / 2.

Parameters

x: number

Returns

number