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

decodeclj/s

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

encodeclj/s

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

hex->byteclj/s

(hex->byte hex)

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

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

valid?clj/s

(valid? value)

Returns true if the string is valid hexadecimal.

Returns true if the string is valid hexadecimal.
sourceraw 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.
sourceraw docstring

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

× close