Liking cljdoc? Tell your friends :D

fress.writer


*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) + 1

@return {number}(bits not needed to represent this number) + 1
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

IFressianWritercljsprotocol

writeCodecljs

(writeCode this code)

writeStringNoChunk-cljs

(writeStringNoChunk- this s)

writeDoublecljs

(writeDouble this d)

beginClosedListcljs

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

writeNullcljs

(writeNull this)

beginOpenListcljs

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

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)

Ends a list begun with begin-closed-list.

Ends a list begun with begin-closed-list.

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

utf8-encoding-sizecljs

(utf8-encoding-size ch)

src/org/fressian/impl/Fns.java:117:4

src/org/fressian/impl/Fns.java:117:4
sourceraw docstring

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] :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