Skip to content
Legacy docs for Tenzir v5.x. For the latest Tenzir v6 series, visit docs.tenzir.com. Migrating from v5? Read the Tenzir v6 migration guide.

Decodes bytes from their hexadecimal representation.

decode_hex(bytes: blob|string) -> blob

Decodes bytes from their hexadecimal representation.

The value to decode.

from {bytes: "54656E7A6972"}
decoded = bytes.decode_hex()
{bytes: "54656E7A6972", decoded: "Tenzir"}
from {bytes: "4e6f6E6365"}
decoded = bytes.decode_hex()
{bytes: "4e6f6E6365", decoded: "Nonce"}

Last updated: