Liking cljdoc? Tell your friends :D

fress.writer


*stringify-keys*cljs

source

*write-raw-utf8*cljs

source

*write-utf8-tag*cljs

source

add-handlercljs

(add-handler acc [k handler])
source

bit-switchcljs

(bit-switch l)

@return {number} bits not needed to represent this number

@return {number} bits not needed to represent this number
sourceraw docstring

buffer-string-chunk-utf8cljs

(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}
sourceraw docstring

build-handler-lookupcljs

(build-handler-lookup user-handlers rec->tag)
source

build-inheritance-lookupcljs

(build-inheritance-lookup handlers)
source

class-symcljs

(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.
sourceraw docstring

default-write-handlerscljs

source

defaultWriteStringcljs

(defaultWriteString this s)
source

FressianWritercljs

source

fullnamecljs

(fullname kw)
source

IFressianWritercljsprotocol

writeCodecljs

(writeCode this code)

writeStringNoChunk-cljs

(writeStringNoChunk- this s)

writeDoublecljs

(writeDouble this d)

beginClosedListcljs

(beginClosedList this)

writeNullcljs

(writeNull this)

beginOpenListcljs

(beginOpenList this)

getPriorityCachecljs

(getPriorityCache this)

writeBytescljs

(writeBytes this bs)
(writeBytes this bs offset length)

writeCountcljs

(writeCount this n)

writeObjectcljs

(writeObject this o)
(writeObject this o cache?)

shouldSkipCache-cljs

(shouldSkipCache- this o)

writeStringcljs

(writeString this s)

endListcljs

(endList this)

getStructCachecljs

(getStructCache this)

writeListcljs

(writeList this o)

doWrite-cljs

(doWrite- this tag o w cache?)

writeString-cljs

(writeString- this s)

writeFootercljs

(writeFooter this)

writeAscljs

(writeAs this tag o)
(writeAs this tag o cache?)

writeBooleancljs

(writeBoolean this b)

writeFloatcljs

(writeFloat this f)

writeIntcljs

(writeInt this i)

resetCachescljs

(resetCaches this)

clearCachescljs

(clearCaches this)

writeTagcljs

(writeTag this tag componentCount)
source

internalWriteFootercljs

(internalWriteFooter wrt length)
source

internalWriteIntcljs

(internalWriteInt wtr n)
source

valid-handler-key?cljs

(valid-handler-key? k)

singular or coll of constructors and string tags

singular or coll of constructors and string tags
sourceraw docstring

valid-record->name?cljs

(valid-record->name? m)

each key should be record ctor

each key should be record ctor
sourceraw docstring

valid-user-handlers?cljs

(valid-user-handlers? uh)
source

writeBooleanArraycljs

(writeBooleanArray wtr a)
source

writeByteArraycljs

(writeByteArray wrt bytes)
source

writeDoubleArraycljs

(writeDoubleArray wtr a)
source

writeFloatArraycljs

(writeFloatArray wtr a)
source

writeInstcljs

(writeInst wtr date)
source

writeIntArraycljs

(writeIntArray wtr a)
source

writeLongArraycljs

(writeLongArray wtr arr)
source

writeMapcljs

(writeMap wrt m)
source

writeNumbercljs

(writeNumber this n)
source

writeObjectArraycljs

(writeObjectArray wtr arr)
source

writercljs

(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.
sourceraw docstring

writeRawUTF8cljs

(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.
sourceraw docstring

writeRecordcljs

(writeRecord w rec rec->tag)
source

writeRegexcljs

(writeRegex wtr re)
source

writeSetcljs

(writeSet wtr s)
source

writeUricljs

(writeUri wtr u)
source

writeUUIDcljs

(writeUUID wtr u)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close