Deliberately simple, high-performance de/serializer for Clojure. Adapted from Deep-Freeze.
Deliberately simple, high-performance de/serializer for Clojure. Adapted from Deep-Freeze.
(case-eval e & clauses)
Like 'case' but evaluates test constants for their compile-time value.
Like 'case' but evaluates test constants for their compile-time value.
(freeze-to-bytes x)
(freeze-to-bytes x compress?)
Serializes x to a byte array and returns the array.
Serializes x to a byte array and returns the array.
(freeze-to-stream! data-output-stream x)
Serializes x to given output stream.
Serializes x to given output stream.
(freezer type id & body)
Helper to extend Freezable protocol.
Helper to extend Freezable protocol.
(thaw-from-bytes ba)
(thaw-from-bytes ba compressed?)
Deserializes an entity from given byte array.
Deserializes an entity from given byte array.
(thaw-from-stream! data-input-stream)
DEPRECATED. Deserializes an entity from given input stream. Includes temporary support for older versions of serialization schema that didn't include a schema-header.
DEPRECATED. Deserializes an entity from given input stream. Includes temporary support for older versions of serialization schema that didn't include a schema-header.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close