Functions to encode and decode bytes as hexadecimal.
Functions to encode and decode bytes as hexadecimal.
(byte->hex value)
Converts a single byte value to a two-character hex string.
Converts a single byte value to a two-character hex string.
(decode string)
Decode a byte array from a hexadecimal string. Handles both upper and lower case characters. Returns nil for nil or blank strings.
Decode a byte array from a hexadecimal string. Handles both upper and lower case characters. Returns nil for nil or blank strings.
(encode data)
Encode a byte array into a hexadecimal string. Returns nil for nil or empty data.
Encode a byte array into a hexadecimal string. Returns nil for nil or empty data.
(hex->byte hex)
Converts a two-character hex string into a byte value.
Converts a two-character hex string into a byte value.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close