Liking cljdoc? Tell your friends :D

tupelo.bits

Tupelo - Making Clojure even sweeter

Tupelo - Making Clojure even sweeter
raw docstring

bit->charclj

(bit->char bit-val)

Inputs: [bit-val :- s/Int] Returns: Character

Given an integer bit value 0 or 1, returns a character '0' or '1'

Inputs: [bit-val :- s/Int]
Returns: Character

Given an integer bit value 0 or 1, returns a character '0' or '1'
sourceraw docstring

bits-unsigned->byteclj

(bits-unsigned->byte bits)

Inputs: [bits :- [s/Int]] Returns: s/Int

Given a vector of 0/1 integer bit values, returns a signed byte value

Inputs: [bits :- [s/Int]]
Returns: s/Int

Given a vector of 0/1 integer bit values, returns a signed byte value
sourceraw docstring

bits-unsigned->longclj

(bits-unsigned->long bits)

Inputs: [bits :- [s/Int]] Returns: s/Int

Given a vector of 0/1 integer bit values, returns a signed long value

Inputs: [bits :- [s/Int]]
Returns: s/Int

Given a vector of 0/1 integer bit values, returns a signed long value
sourceraw docstring

byte->bits-unsignedclj

(byte->bits-unsigned byte-val)

Inputs: [byte-val :- s/Int] Returns: [s/Int]

Given a positive integer value, returns an 8-len vector of 0/1 integer values

Inputs: [byte-val :- s/Int]
Returns: [s/Int]

Given a positive integer value, returns an 8-len vector of 0/1 integer values
sourceraw docstring

char->bitclj

(char->bit bit-char)

Inputs: [bit-char :- Character] Returns: s/Int

Given a character '0' or '1', returns an integer bit value 0 or 1

Inputs: [bit-char :- Character]
Returns: s/Int

Given a character '0' or '1', returns an integer bit value 0 or 1
sourceraw docstring

long->bits-unsignedclj

(long->bits-unsigned long-val)

Inputs: [long-val :- s/Int] Returns: [s/Int]

Given a positive integer value, returns a 64-len vector of 0/1 integer values

Inputs: [long-val :- s/Int]
Returns: [s/Int]

Given a positive integer value, returns a 64-len vector of 0/1 integer values
sourceraw docstring

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

× close