Liking cljdoc? Tell your friends :D

buddy.core.bytes

A collection of functions for work with byte arrays and bytes.

A collection of functions for work with byte arrays
and bytes.
raw docstring

bytes?clj

(bytes? x)

Test if a first parameter is a byte array or not.

Test if a first parameter is a byte
array or not.
raw docstring

concatclj

(concat & parts)

Given N number of byte arrays, concat them in one unique byte array and return it.

Given N number of byte arrays, concat them in
one unique byte array and return it.
raw docstring

copyclj

(copy input)

Is a specialized version of slice that just copy the byte array.

Is a specialized version of slice that
just copy the byte array.
raw docstring

equals?clj

(equals? a b)

Test whether two sequences of characters or bytes are equal in a way that protects against timing attacks. Note that this does not prevent an attacker from discovering the length of the data being compared.

Test whether two sequences of characters or bytes are equal in a way that
protects against timing attacks. Note that this does not prevent an attacker
from discovering the *length* of the data being compared.
raw docstring

fill!clj

(fill! input val)
(fill! input val & {:keys [limit offset start end]})

Assigns the specified byte value to each element of the specified array of bytes.

Assigns the specified byte value to each element
of the specified array of bytes.
raw docstring

sliceclj

(slice input start end)

Returns a new copy of the byte array but offset and crop by start and end indices.

Returns a new copy of the byte array but
offset and crop by start and end indices.
raw docstring

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

× close