buddy.core.codecs

Util functions for make conversion between string, bytes and encode them to base64 ot hex format.

bytes->hex

(bytes->hex data)

Convert a byte array to hex encoded string.

bytes->long

(bytes->long input)

bytes->str

(bytes->str data)(bytes->str data encoding)

Convert byte array to String.

hex->bytes

(hex->bytes data)

Convert hexadecimal encoded string to bytes array.

IByteArray

protocol

Facility for convert input parameters to bytes array with default implementation for string an bytes array itself.

members

-to-bytes

(-to-bytes this)

Represent this as byte array.

long->bytes

(long->bytes input)

str->bytes

(str->bytes s)(str->bytes s encoding)

Convert string to byte array.

to-bytes

(to-bytes v)

Encode as bytes.