(bit-switch l)
@return {number} bits not needed to represent this number
@return {number} bits not needed to represent this number
(buffer-string-chunk-utf8 s start buf)
starting with position start in s, write as much of s as possible into byteBuffer using UTF-8. returns {stringpos, bufpos}
starting with position start in s, write as much of s as possible into byteBuffer using UTF-8. returns {stringpos, bufpos}
(class-sym rec rec->tag)
Record types need a string so the name can survive munging. Is converted to symbol before serializing.
Record types need a string so the name can survive munging. Is converted to symbol before serializing.
(writeCode this code)
(writeStringNoChunk- this s)
(writeDouble this d)
(beginClosedList this)
(writeNull this)
(beginOpenList this)
(getPriorityCache this)
(writeBytes this bs)
(writeBytes this bs offset length)
(writeCount this n)
(writeObject this o)
(writeObject this o cache?)
(shouldSkipCache- this o)
(writeString this s)
(endList this)
(getStructCache this)
(writeList this o)
(doWrite- this tag o w cache?)
(writeString- this s)
(writeFooter this)
(writeAs this tag o)
(writeAs this tag o cache?)
(writeBoolean this b)
(writeFloat this f)
(writeInt this i)
(resetCaches this)
(clearCaches this)
(writeTag this tag componentCount)
(normalize-handlers user-handlers)
Normalize type->tag->writer (a la data.fressian) to flat type->writer
Normalize type->tag->writer (a la data.fressian) to flat type->writer
(valid-handler-key? k)
singular or coll of constructors and string tags
singular or coll of constructors and string tags
(valid-record->name? m)
each key should be record ctor
each key should be record ctor
(writeBigInt64 w n)
written as normal ints where unsafe numbers would be read back as longs
written as normal ints where unsafe numbers would be read back as longs
(writer out & {:keys [handlers record->name checksum? offset] :as opts})
Create a writer that combines userHandlers with the normal type handlers built into Fressian.
Create a writer that combines userHandlers with the normal type handlers built into Fressian.
(writeRawUTF8 this s)
We can use native TextEncoder to remove some dirty work, also chunking is pointless for WASM.
We can use native TextEncoder to remove some dirty work, also chunking is pointless for WASM.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close