Liking cljdoc? Tell your friends :D

deercreeklabs.baracus


b64->byte-arrayclj/s

(b64->byte-array s)

Inputs: [s :- (s/maybe s/Str)] Returns: (s/maybe ByteArray)

Inputs: [s :- (s/maybe s/Str)]
Returns: (s/maybe ByteArray)
sourceraw docstring

byte-arrayclj/s≠

clj
(byte-array size-or-seq)
(byte-array size init-val-or-seq)
cljs
(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
sourceraw docstring

byte-array->b64clj/s

(byte-array->b64 b)

Inputs: [b :- (s/maybe ByteArray)] Returns: (s/maybe s/Str)

Inputs: [b :- (s/maybe ByteArray)]
Returns: (s/maybe s/Str)
sourceraw docstring

byte-array->debug-strclj/s

(byte-array->debug-str ba)

Inputs: [ba :- ByteArray] Returns: s/Str

Inputs: [ba :- ByteArray]
Returns: s/Str
sourceraw docstring

byte-array->fragmentsclj/s

(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])
sourceraw docstring

byte-array->hex-strclj/s

(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)
sourceraw docstring

byte-array->utf8clj/s

(byte-array->utf8 ba)

Inputs: [ba :- (s/maybe ByteArray)] Returns: (s/maybe s/Str)

Inputs: [ba :- (s/maybe ByteArray)]
Returns: (s/maybe s/Str)
sourceraw docstring

byte-array-cljscljs

(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
sourceraw docstring

byte-array?clj/s

(byte-array? x)

Inputs: [x :- s/Any] Returns: s/Bool

Inputs: [x :- s/Any]
Returns: s/Bool
sourceraw docstring

ByteArrayclj/s

source

char->intclj/s

(char->int ch)
source

classcljs

source

concat-byte-arraysclj/s

(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)
sourceraw docstring

decode-intclj/s

(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.
sourceraw docstring

deflateclj/s

(deflate data)

Inputs: [data :- (s/maybe ByteArray)] Returns: (s/maybe ByteArray)

Inputs: [data :- (s/maybe ByteArray)]
Returns: (s/maybe ByteArray)
sourceraw docstring

encode-intclj/s

(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.
sourceraw docstring

equivalent-byte-arrays?clj/s

(equivalent-byte-arrays? a b)

Inputs: [a :- ByteArray b :- ByteArray] Returns: s/Bool

Inputs: [a :- ByteArray b :- ByteArray]
Returns: s/Bool
sourceraw docstring

hex-str->byte-arrayclj/s

(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)
sourceraw docstring

inflateclj/s

(inflate deflated-data)

Inputs: [deflated-data :- (s/maybe ByteArray)] Returns: (s/maybe ByteArray)

Inputs: [deflated-data :- (s/maybe ByteArray)]
Returns: (s/maybe ByteArray)
sourceraw docstring

Nilclj/s

source

read-byte-array-from-fileclj

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

Inputs: [filename :- s/Str] Returns: ByteArray

Inputs: [filename :- s/Str]
Returns: ByteArray
sourceraw docstring

reverse-byte-arrayclj/s

(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.
sourceraw docstring

signed-byte-array->unsigned-byte-arraycljs

(signed-byte-array->unsigned-byte-array ba)
source

SizeOrSeqclj/s

source

slice-byte-arrayclj/s≠

clj
(slice-byte-array ba)
(slice-byte-array ba start)
(slice-byte-array ba start end)
cljs
(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.
sourceraw docstring

unsigned-byte-array->signed-byte-arraycljs

(unsigned-byte-array->signed-byte-array ba)
source

utf8->byte-arrayclj/s

(utf8->byte-array s)

Inputs: [s :- (s/maybe s/Str)] Returns: (s/maybe ByteArray)

Inputs: [s :- (s/maybe s/Str)]
Returns: (s/maybe ByteArray)
sourceraw docstring

write-byte-array-to-fileclj

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

Inputs: [filename :- s/Str ba :- ByteArray] Returns: Nil

Inputs: [filename :- s/Str ba :- ByteArray]
Returns: Nil
sourceraw docstring

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

× close