Liking cljdoc? Tell your friends :D

byte-transforms


available-compressorsclj

(available-compressors)

available-encodersclj

(available-encoders)

Returns a list of all available encodings.

Returns a list of all available encodings.
raw docstring

available-hash-functionsclj

(available-hash-functions)

Returns the name of all available hash functions.

Returns the name of all available hash functions.
raw docstring

bytes->wrapped-out->bytesclj

(bytes->wrapped-out->bytes bytes output-wrapper options)

compressclj

(compress x)
(compress x algorithm)
(compress x algorithm options)

Takes a byte stream, and returns a compressed version. By default, this will use Snappy.

Takes a byte stream, and returns a compressed version.  By default, this will use Snappy.
raw docstring

decodeclj

(decode x encoding)
(decode x encoding options)

Takes an encoded byte stream, and returns a decoded version.

Takes an encoded byte stream, and returns a decoded version.
raw docstring

decompressclj

(decompress x)
(decompress x algorithm)
(decompress x algorithm options)

Takes a compressed byte stream, and return an uncompressed version. By default, this will use Snappy.

Takes a compressed byte stream, and return an uncompressed version.  By default, this will use Snappy.
raw docstring

def-compressorcljmacro

(def-compressor compressor-name [bytes options] & body)

def-decodercljmacro

(def-decoder decoder-name [bytes options] & body)

def-decompressorcljmacro

(def-decompressor decompressor-name [bytes options] & body)

def-encodercljmacro

(def-encoder encoder-name [bytes options] & body)

def-hashcljmacro

(def-hash hash-name [bytes options] & body)

encodeclj

(encode x encoding)
(encode x encoding options)

Takes a byte stream, and returns an encoded version.

Takes a byte stream, and returns an encoded version.
raw docstring

hashclj

(hash bytes)
(hash bytes function)
(hash bytes function options)

Takes a byte stream, and returns a value representing its hash, which will be an integer if the hash is 32 or 64-bit, or a byte array otherwise. By default, this will use the murmur64 hash.

Takes a byte stream, and returns a value representing its hash, which will be an integer if
the hash is 32 or 64-bit, or a byte array otherwise.  By default, this will use the murmur64
hash.
raw docstring

hash->bytesclj

(hash->bytes x)

Converts a hash to an array of bytes.

Converts a hash to an array of bytes.
raw docstring

hash->intsclj

(hash->ints x)

Converts a hash to an array of integers.

Converts a hash to an array of integers.
raw docstring

hash->longsclj

(hash->longs x)

Converts a hash to an array of longs.

Converts a hash to an array of longs.
raw docstring

hash->shortsclj

(hash->shorts x)

Converts a hash to an array of shorts.

Converts a hash to an array of shorts.
raw docstring

hash->uuidclj

(hash->uuid x)

Converts a 128-bit hash to a string representation of a UUID.

Converts a 128-bit hash to a string representation of a UUID.
raw docstring

hash=clj

(hash= a b)

Returns true if the two hashes equal each other

Returns true if the two hashes equal each other
raw docstring

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

× close