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 data)
Parses a hexadecimal string into a byte array. Ensures that the resulting array is zero-padded to match the hex string length.
Parses a hexadecimal string into a byte array. Ensures that the resulting array is zero-padded to match the hex string length.
(encode data)
Converts a byte array into a lowercase hexadecimal string. Returns nil for empty inputs.
Converts a byte array into a lowercase hexadecimal string. Returns nil for empty inputs.
(hex->byte hex)
Converts a two-character hex string into a byte value.
Converts a two-character hex string into a byte value.
(valid? value)
Returns true if the string is valid hexadecimal.
Returns true if the string is valid hexadecimal.
(validate value)
Checks a string to determine whether it's well-formed hexadecimal. Returns an error string if the argument is invalid.
Checks a string to determine whether it's well-formed hexadecimal. Returns an error string if the argument is invalid.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close