clj-cbor.tags.clojure

Read and write handler support for Clojure types.

clojure-read-handlers

Map of tag codes to read handlers to parse Clojure values.

clojure-write-handlers

Map of Clojure types to write handler functions.

format-symbol

(format-symbol value)

format-tagged-literal

(format-tagged-literal value)

generic-object-tag

Tagged literals are represented using tag 27 (‘generic object’) applied to an array containing two elements. The first element is the string version of the EDN tag symbol and the second is the tagged literal form.

See: http://cbor.schmorp.de/generic-object

identifier-tag

Keywords and symbols are represented using tag 39 (‘identifier’) applied to the string version of the value. This adds three bytes to the size of the identifier itself for the header, tag code, and string header. Keywords are symbols whose first character is a colon (:).

See: https://github.com/lucas-clemente/cbor-specs/blob/master/id.md

parse-symbol

(parse-symbol value)

parse-tagged-literal

(parse-tagged-literal value)