(b64->byte-array s)
(byte-array size-or-seq)
(byte-array size init-val-or-seq)
Construct a byte array. Args:
Construct a byte array. Args: - size-or-seq: An integer size or sequence of bytes.
(byte-array->b16-alpha-str ba)
(byte-array->b64 b)
Note that this does not return a URL-safe string.
Note that this does not return a URL-safe string.
(byte-array->debug-str ba)
(byte-array->fragments ba fragment-size)
(byte-array->hex-str ba)
(byte-array->hex-str* {:keys [alphabet ba]})
(byte-array->upper-hex-str ba)
(byte-array->utf8 ba)
(byte-array? arg)
Tests if the argument is a byte array
Tests if the argument is a byte array
(char->int ch)
(concat-byte-arrays arrays)
Concatenate a sequence of byte arrays
Concatenate a sequence of byte arrays
(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.
(deflate data)
(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.
(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.
(gunzip ba)
(gzip ba)
(hex-str->byte-array s)
(inflate deflated-data)
(md5 ba)
(read-byte-array-from-file filename)
(reverse-byte-array ba)
Returns a new byte array with bytes reversed.
Returns a new byte array with bytes reversed.
(sha1 ba)
(sha256 ba)
(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.
(utf8->byte-array s)
(write-byte-array-to-file filename ba)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close