Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

encode-hex - (hex-encoding)

Description

encode-hex will encode string <data> to hexadecimal string <output> given in "to" clause which consists of digits "0"-"9" and letters "a"-"f". The length of <data> to encode may be given with <input length> number in "input-length" clause; if not the whole string <data> is used. If you wish to prefix the output with a string <prefix>, you can specify it in "prefix" clause with <prefix>; otherwise no prefix is prepended.

Examples

Create hexadecimal string from binary data "mydata" of length 7, prefixed with string "\\ex" (which is typically needed for PostgreSQL binary input to queries). The output string "hexout" is created: set-string mydata = "\x00""A""\x00""\xF""AB""\x00""\x04" encode-hex mydata to hexout input-length 7 prefix "\\ex" The value of "hexout" will be: \ex0041000F414200

Name

encode-hex - (hex-encoding)

Purpose

Encode data into hexadecimal string.

See Also

Hex encoding decode-hexencode-hex See all documentation $DATE $VERSION GOLF(2gg)

Syntax

encode-hex <data> to <output> \ [ input-length <input length> ] \ [ prefix <prefix> ]

See Also