(bit-switch l)
@return {number}(bits not needed to represent this number) + 1
@return {number}(bits not needed to represent this number) + 1
(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)
Begin writing a fressianed list. To end the list, call end-list. Used to write sequential data whose size is not known in advance.
Begin writing a fressianed list. To end the list, call end-list. Used to write sequential data whose size is not known in advance.
(writeNull this)
(beginOpenList this)
Writes fressian code to begin an open list. An open list can be terminated either by a call to end-list, or by simply closing the stream. Used to write sequential data whose size is not known in advance, in contexts where stream failure can safely be interpreted as end of list.
Writes fressian code to begin an open list. An open list can be terminated either by a call to end-list, or by simply closing the stream. Used to write sequential data whose size is not known in advance, in contexts where stream failure can safely be interpreted as end of list.
(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)
Ends a list begun with begin-closed-list.
Ends a list begun with begin-closed-list.
(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)
(utf8-encoding-size ch)
src/org/fressian/impl/Fns.java:117:4
src/org/fressian/impl/Fns.java:117:4
(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
(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