Liking cljdoc? Tell your friends :D

boring.reader

CBOR reader for ClojureScript. Mirrors the JVM decoder's structure and, more importantly, its hardening: validated counts, a nesting cap, duplicate-key rejection, UTF-8 validation and typed errors. Those were all found the hard way on the JVM side (fuzzing, reading other implementations) and there is no reason for the port to relearn them.

Measured on node: TextDecoder beats a fromCharCode loop 6.7x on decode, the opposite polarity from encode.

CBOR reader for ClojureScript. Mirrors the JVM decoder's structure and, more
importantly, its hardening: validated counts, a nesting cap, duplicate-key
rejection, UTF-8 validation and typed errors. Those were all found the hard
way on the JVM side (fuzzing, reading other implementations) and there is no
reason for the port to relearn them.

Measured on node: `TextDecoder` beats a `fromCharCode` loop 6.7x on
decode, the opposite polarity from encode.
raw docstring

at-end?cljs

(at-end? r)
source

IDENT-CACHE-MAXcljs

source

positioncljs

(position r)
source

read!cljs

(read! r)
source

read-next!cljs

(read-next! r)

Next top-level item of a CBOR sequence, clearing the per-message stringref namespace but keeping the ident cache.

Next top-level item of a CBOR sequence, clearing the per-message stringref
namespace but keeping the ident cache.
sourceraw docstring

readercljs

(reader bs)
source

reset!cljs

(reset! r bs)
source

text-decodercljs

source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close