Skip to main content
Module

std/encoding/mod.ts>encodeToHex

Deno standard library
Go to Latest
function encodeToHex
import { encodeToHex } from "https://deno.land/std@0.34.0/encoding/mod.ts";

Encode encodes src into encodedLen(src.length) bytes of dst. As a convenience, it returns the number of bytes written to dst but this value is always encodedLen(src.length). Encode implements hexadecimal encoding.

Parameters

dst: Uint8Array
src: Uint8Array

Returns

number