(b64->byte-array s)
Inputs: [s :- (s/maybe s/Str)] Returns: (s/maybe ByteArray)
Inputs: [s :- (s/maybe s/Str)] Returns: (s/maybe ByteArray)
(byte-array size-or-seq)
(byte-array size init-val-or-seq)
(byte-array G__3357)
(byte-array G__3361 G__3362)
Inputs: ([size-or-seq :- SizeOrSeq] [size :- SizeOrSeq init-val-or-seq :- (s/if sequential? [s/Any] s/Any)]) Returns: ByteArray
Inputs: ([size-or-seq :- SizeOrSeq] [size :- SizeOrSeq init-val-or-seq :- (s/if sequential? [s/Any] s/Any)]) Returns: ByteArray
(byte-array->b64 b)
Inputs: [b :- (s/maybe ByteArray)] Returns: (s/maybe s/Str)
Inputs: [b :- (s/maybe ByteArray)] Returns: (s/maybe s/Str)
(byte-array->debug-str ba)
Inputs: [ba :- ByteArray] Returns: s/Str
Inputs: [ba :- ByteArray] Returns: s/Str
(byte-array->fragments ba fragment-size)
Inputs: [ba :- (s/maybe ByteArray) fragment-size :- s/Int] Returns: (s/maybe [ByteArray])
Inputs: [ba :- (s/maybe ByteArray) fragment-size :- s/Int] Returns: (s/maybe [ByteArray])
(byte-array->hex-str ba)
Inputs: [ba :- (s/maybe ByteArray)] Returns: (s/maybe s/Str)
Inputs: [ba :- (s/maybe ByteArray)] Returns: (s/maybe s/Str)
(byte-array->utf8 ba)
Inputs: [ba :- (s/maybe ByteArray)] Returns: (s/maybe s/Str)
Inputs: [ba :- (s/maybe ByteArray)] Returns: (s/maybe s/Str)
(byte-array-cljs G__3345)
(byte-array-cljs G__3349 G__3350)
Inputs: ([size-or-seq :- SizeOrSeq] [size init-val-or-seq]) Returns: ByteArray
Inputs: ([size-or-seq :- SizeOrSeq] [size init-val-or-seq]) Returns: ByteArray
(byte-array? x)
Inputs: [x :- s/Any] Returns: s/Bool
Inputs: [x :- s/Any] Returns: s/Bool
(concat-byte-arrays arrays)
Inputs: [arrays :- (s/maybe [(s/maybe ByteArray)])] Returns: (s/maybe ByteArray)
Inputs: [arrays :- (s/maybe [(s/maybe ByteArray)])] Returns: (s/maybe ByteArray)
(decode-int ba)
Inputs: [ba :- ByteArray] Returns: [(s/one s/Int :int) (s/optional ByteArray :unread-remainder)]
Takes an zig-zag encoded byte array and reads an integer from it. Returns a vector of the integer and, optionally, any unread bytes.
Inputs: [ba :- ByteArray] Returns: [(s/one s/Int :int) (s/optional ByteArray :unread-remainder)] Takes an zig-zag encoded byte array and reads an integer from it. Returns a vector of the integer and, optionally, any unread bytes.
(deflate data)
Inputs: [data :- (s/maybe ByteArray)] Returns: (s/maybe ByteArray)
Inputs: [data :- (s/maybe ByteArray)] Returns: (s/maybe ByteArray)
(encode-int i)
Inputs: [i :- s/Int] Returns: ByteArray
Zig zag encodes an integer. Returns the encoded bytes.
Inputs: [i :- s/Int] Returns: ByteArray Zig zag encodes an integer. Returns the encoded bytes.
(equivalent-byte-arrays? a b)
Inputs: [a :- ByteArray b :- ByteArray] Returns: s/Bool
Inputs: [a :- ByteArray b :- ByteArray] Returns: s/Bool
(hex-str->byte-array s)
Inputs: [s :- (s/maybe s/Str)] Returns: (s/maybe ByteArray)
Inputs: [s :- (s/maybe s/Str)] Returns: (s/maybe ByteArray)
(inflate deflated-data)
Inputs: [deflated-data :- (s/maybe ByteArray)] Returns: (s/maybe ByteArray)
Inputs: [deflated-data :- (s/maybe ByteArray)] Returns: (s/maybe ByteArray)
(read-byte-array-from-file filename)
Inputs: [filename :- s/Str] Returns: ByteArray
Inputs: [filename :- s/Str] Returns: ByteArray
(reverse-byte-array ba)
Inputs: [ba :- (s/maybe ByteArray)] Returns: (s/maybe ByteArray)
Returns a new byte array with bytes reversed.
Inputs: [ba :- (s/maybe ByteArray)] Returns: (s/maybe ByteArray) Returns a new byte array with bytes reversed.
(slice-byte-array ba)
(slice-byte-array ba start)
(slice-byte-array ba start end)
(slice-byte-array G__3386)
(slice-byte-array G__3390 G__3391)
(slice-byte-array G__3395 G__3396 G__3397)
Inputs: ([ba :- (s/maybe ByteArray)] [ba :- (s/maybe ByteArray) start :- s/Num] [ba :- (s/maybe ByteArray) start :- s/Num end :- s/Num]) Returns: (s/maybe ByteArray)
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.
Inputs: ([ba :- (s/maybe ByteArray)] [ba :- (s/maybe ByteArray) start :- s/Num] [ba :- (s/maybe ByteArray) start :- s/Num end :- s/Num]) Returns: (s/maybe ByteArray) 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)
Inputs: [s :- (s/maybe s/Str)] Returns: (s/maybe ByteArray)
Inputs: [s :- (s/maybe s/Str)] Returns: (s/maybe ByteArray)
(write-byte-array-to-file filename ba)
Inputs: [filename :- s/Str ba :- ByteArray] Returns: Nil
Inputs: [filename :- s/Str ba :- ByteArray] Returns: Nil
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close