Liking cljdoc? Tell your friends :D

cljs-msgpack-lite.clj-codec


CljCharcljs

source

CljRatiocljs

source

create-clj-codeccljs

(create-clj-codec &
                  {:keys [include-map include-list]
                   :or {:include-map false :include-list false}})

Creates and returns a codec for encoding and decoding Clojure(Script)-specific types: Keyword (0x03), Symbol (0x04), PersistentHashset (0x07). As ClojureScript does not have Char and Ratio, surrogate types CljChar and CljRatio are defined (0x04 and 0x05, respectively). These extensions are compatible with https://github.com/edma2/clojure-msgpack .

If :include-map true is passed, PersistentArrayMap can also be directly encoded and decoded with id 0x08 (default is :include-map true). If :include-list true is passed, an extension for the empty list '() (0x09) and for non-empty lists (0x10) are added (default is :include-list false).

Note that the latter two extensions are NOT compatible with https://github.com/edma2/clojure-msgpack .

Creates and returns a codec for encoding and decoding Clojure(Script)-specific types:
`Keyword` (`0x03`), `Symbol` (`0x04`), `PersistentHashset` (`0x07`). As ClojureScript
does not have `Char` and `Ratio`, surrogate types `CljChar` and `CljRatio` are defined 
(`0x04` and `0x05`, respectively). These extensions are compatible with 
https://github.com/edma2/clojure-msgpack .


If `:include-map true` is passed, `PersistentArrayMap` can also be directly encoded
and decoded with id `0x08` (default is `:include-map true`).
If `:include-list true` is passed, an extension for the empty list `'()` (`0x09`) and
for non-empty lists (`0x10`) are added (default is `:include-list false`).

Note that the latter two extensions are NOT compatible with 
https://github.com/edma2/clojure-msgpack .
sourceraw docstring

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

× close