τau /

encoding/hex

module
hex = import("encoding/hex")

hex - hexadecimal encoding.

EncodeToString turns bytes into the string of their hexadecimal digits, two per byte, and DecodeString reads that string back.

EncodedLen = fn(n)source

EncodedLen is how long the encoding of n bytes is.

DecodedLen = fn(n)source

DecodedLen is how many bytes n hexadecimal digits stand for.

EncodeToString = fn(data)source

EncodeToString returns the hexadecimal form of data, a string or bytes.

DecodeString = fn(s)source

DecodeString returns the bytes the hexadecimal string s stands for.