Liking cljdoc? Tell your friends :D

deercreeklabs.baracus


b64->byte-arrayclj/s

(b64->byte-array s)

byte-arrayclj/s

(byte-array size-or-seq)
(byte-array size init-val-or-seq)

Construct a byte array. Args:

  • size-or-seq: An integer size or sequence of bytes.
Construct a byte array.
Args:
  - size-or-seq: An integer size or sequence of bytes.
raw docstring

byte-array->b16-alpha-strclj/s

(byte-array->b16-alpha-str ba)

byte-array->b64clj/s

(byte-array->b64 b)

Note that this does not return a URL-safe string.

Note that this does not return a URL-safe string.
raw docstring

byte-array->debug-strclj/s

(byte-array->debug-str ba)

byte-array->fragmentsclj/s

(byte-array->fragments ba fragment-size)

byte-array->hex-strclj/s

(byte-array->hex-str ba)

byte-array->hex-str*clj/s

(byte-array->hex-str* {:keys [alphabet ba]})

byte-array->upper-hex-strclj/s

(byte-array->upper-hex-str ba)

byte-array->utf8clj/s

(byte-array->utf8 ba)

byte-array?clj/s

(byte-array? arg)

Tests if the argument is a byte array

Tests if the argument is a byte array
raw docstring

ByteArrayclj/s


char->intclj/s

(char->int ch)

concat-byte-arraysclj/s

(concat-byte-arrays arrays)

Concatenate a sequence of byte arrays

Concatenate a sequence of byte arrays
raw docstring

decode-intclj/s

(decode-int ba)

Takes an variable-length zig-zag encoded byte array and reads an integer from it. Returns a vector of the integer and, optionally, any unread bytes.

Takes an variable-length zig-zag encoded byte array and reads an integer
from it.
Returns a vector of the integer and, optionally, any unread bytes.
raw docstring

deflateclj

(deflate data)

encode-intclj/s

(encode-int i)

Encodes an integer using variable length zig-zag coding. Returns the encoded bytes.

Encodes an integer using variable length zig-zag coding.
Returns the encoded bytes.
raw docstring

equivalent-byte-arrays?clj/s

(equivalent-byte-arrays? a b)

Test if two byte arrays are equivalent. Normal Clojure = on byte arrays checks identity, not equality. Note that this is an O(n) operation.

Test if two byte arrays are equivalent. Normal Clojure = on byte arrays
checks identity, not equality. Note that this is an O(n) operation.
raw docstring

gunzipclj

(gunzip ba)

gzipclj

(gzip ba)

hex-chars-setclj/s


hex-str->byte-arrayclj/s

(hex-str->byte-array s)

inflateclj

(inflate deflated-data)

md5clj/s

(md5 ba)

read-byte-array-from-fileclj

(read-byte-array-from-file filename)

reverse-byte-arrayclj/s

(reverse-byte-array ba)

Returns a new byte array with bytes reversed.

Returns a new byte array with bytes reversed.
raw docstring

sha1clj/s

(sha1 ba)

sha256clj/s

(sha256 ba)

slice-byte-arrayclj/s

(slice-byte-array ba)
(slice-byte-array ba start)
(slice-byte-array ba start end)

Return a slice of the given byte array. Args: - ba - Byte array to be sliced. Required. - start - Start index. Optional. Defaults to 0. - end - End index. Optional. If not provided, the slice will extend to the end of the array. The returned slice will not contain the byte at the end index position, i.e.: the slice fn uses a half-open interval.

Return a slice of the given byte array.
Args:
     - ba - Byte array to be sliced. Required.
     - start - Start index. Optional. Defaults to 0.
     - end - End index. Optional. If not provided, the slice will extend
          to the end of the array. The returned slice will not contain
          the byte at the end index position, i.e.: the slice fn uses
          a half-open interval.
raw docstring

utf8->byte-arrayclj/s

(utf8->byte-array s)

write-byte-array-to-fileclj

(write-byte-array-to-file filename ba)

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

× close