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.
(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |