Liking cljdoc? Tell your friends :D

me.vedang.clj-fdb.impl

Helper functions for implementing core functionality. This namespace should not be treated as public. Functions inside this namespace are subject to change and meant as helper functions for the core.

Helper functions for implementing core functionality. This namespace
should not be treated as public. Functions inside this namespace are
subject to change and meant as helper functions for the core.
raw docstring

byte-array-classclj

source

decodeclj

(decode code)
(decode s code)

Takes a packed Tuple and returns the contents of the Tuple.

Takes a packed Tuple and returns the contents of the Tuple.
sourceraw docstring

encodeclj

(encode k)
(encode s k)

Takes input data and returns the byte-array representation of that data. Supports strings, vectors, Tuples, Subspaces, Directories. For any other type of key, please serialize to byte-array yourself.

Takes input data and returns the byte-array representation of that data.
Supports strings, vectors, Tuples, Subspaces, Directories. For any
other type of key, please serialize to byte-array yourself.
sourceraw docstring

handle-optsclj

(handle-opts & args)

This function makes it easy to deal with the following multiple arity pattern:

{:arglists '([tc k v] [tc s k v] [tc k v opts] [tc s k v opts])}

In this case, we have clashing arities due to default opts vs explicitly passed opts. The basic check is that if the argument passed in is a map, it is considered to represent opts. In this case, the missing argument is sent back as nil.

This function makes it easy to deal with the following multiple arity
pattern:

{:arglists '([tc k v] [tc s k v] [tc k v opts] [tc s k v opts])}

In this case, we have clashing arities due to default opts vs
explicitly passed opts. The basic check is that if the argument
passed in is a map, it is considered to represent opts. In this
case, the missing argument is sent back as nil.
sourceraw docstring

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

× close