clj-headlights.nippy

fast-decode-stream

(fast-decode-stream stream)

fast-encode-stream

(fast-encode-stream stream data)

Encode the given data with nippy, write the length of the resulting byte array on the stream as an integer, then write the serialized data. Returns the number of bytes written.

freeze

(freeze obj)

thaw

(thaw bytes)