Liking cljdoc? Tell your friends :D

alphabase.hex

Functions to encode and decode bytes as hexadecimal.

Functions to encode and decode bytes as hexadecimal.
raw docstring

byte->hexclj/s

(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.
raw docstring

decodeclj/s

(decode hex-string)

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.
raw docstring

encodeclj/s

(encode ba)

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.
raw docstring

hex->byteclj/s

(hex->byte hex-string)

Converts a two-character hex-string string into a byte value.

Converts a two-character hex-string string into a byte value.
raw docstring

hex-charsclj/s


hex-setclj/s


hex?clj/s

(hex? x)

Test if input is hex char set.

Test if input is hex char set.
raw docstring

valid?clj/s

(valid? value)

Returns true if the string is valid hexadecimal.

Returns true if the string is valid hexadecimal.
raw docstring

validateclj/s

(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.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close