Nippy 2.10.0
Clojure serialization library
taoensso.nippy
High-performance JVM Clojure serialization library. Originally adapted from -Deep-Freeze (https://goo.gl/OePPGr).
Public variables and functions:
- *custom-readers*
- *default-freeze-compressor-selector*
- *final-freeze-fallback*
- ->Compressable-LZMA2
- ->StressRecord
- aes128-encryptor
- default-freeze-compressor-selector
- extend-freeze
- extend-thaw
- Freezable
- freezable?
- freeze
- freeze-fallback-as-str
- freeze-to-out!
- id-bigdec
- id-bigint
- id-biginteger
- id-boolean
- id-byte
- id-byte-as-long
- id-bytes
- id-char
- id-date
- id-double
- id-float
- id-int-as-long
- id-integer
- id-keyword
- id-keyword-depr1
- id-keyword-small
- id-list
- id-long
- id-map
- id-map-depr1
- id-meta
- id-nil
- id-prefixed-custom
- id-queue
- id-ratio
- id-reader
- id-reader-depr1
- id-record
- id-reserved
- id-seq
- id-serializable
- id-set
- id-short
- id-short-as-long
- id-sorted-map
- id-sorted-set
- id-string
- id-string-depr1
- id-string-small
- id-uuid
- id-vector
- inspect-ba
- lz4-compressor
- lz4hc-compressor
- lzma2-compressor
- map->Compressable-LZMA2
- map->StressRecord
- read-biginteger
- read-bytes
- read-compact-long
- read-utf8
- set-default-freeze-compressor-selector!
- snappy-compressor
- stress-data
- stress-data-benchable
- stress-data-comparable
- swap-custom-readers!
- thaw
- thaw-from-in!
- when-debug-mode
- write-biginteger
- write-bytes
- write-compact-long
- write-id
- write-utf8
taoensso.nippy.encryption
Simple no-nonsense crypto with reasonable defaults. Because your Clojure data +Nippy 2.11.0-SNAPSHOT Generated by Codox
Nippy 2.11.0-SNAPSHOT
\ No newline at end of file diff --git a/js/page_effects.js b/js/page_effects.js index ef8120d..28bdfc8 100644 --- a/js/page_effects.js +++ b/js/page_effects.js @@ -31,15 +31,15 @@ function scrollToCurrentVarLink(elements) { } function setCurrentVarLink() { - $('#vars a').parent().removeClass('current') + $('.secondary a').parent().removeClass('current') $('.anchor'). filter(function(index) { return visibleInParent(this) }). each(function(index, element) { - findLinkByFragment("#vars a", element.id). + findLinkByFragment(".secondary a", element.id). parent(). addClass('current') }); - scrollToCurrentVarLink('#vars .current'); + scrollToCurrentVarLink('.secondary .current'); } var hasStorage = (function() { try { return localStorage.getItem } catch(e) {} }()) @@ -72,27 +72,32 @@ function sidebarContentWidth(element) { } function resizeSidebars() { - var nsWidth = sidebarContentWidth('#namespaces') + 30 - var varWidth = 0 + var primaryWidth = sidebarContentWidth('.primary') + 30 + var secondaryWidth = 0 - if ($('#vars').length != 0) { - varWidth = sidebarContentWidth('#vars') + 30 + if ($('.secondary').length != 0) { + secondaryWidth = sidebarContentWidth('.secondary') + 30 } // snap to grid - var snap = 30; - nsWidth = Math.ceil(nsWidth / snap) * snap; - varWidth = Math.ceil(varWidth / snap) * snap; + var snap = 30 + primaryWidth = Math.ceil(primaryWidth / snap) * snap + secondaryWidth = Math.ceil(secondaryWidth / snap) * snap - $('#namespaces').css('width', nsWidth) - $('#vars').css('width', varWidth) - $('#vars, .namespace-index').css('left', nsWidth + 1) - $('.namespace-docs').css('left', nsWidth + varWidth + 2) + $('.primary').css('width', primaryWidth) + $('.secondary').css('width', secondaryWidth).css('left', primaryWidth + 1) + + if (secondaryWidth > 0) { + $('#content').css('left', primaryWidth + secondaryWidth + 2) + } + else { + $('#content').css('left', primaryWidth + 1) + } } $(window).ready(resizeSidebars) $(window).ready(setCurrentVarLink) -$(window).ready(function() { persistScrollPosition('#namespaces')}) +$(window).ready(function() { persistScrollPosition('.primary')}) $(window).ready(function() { $('#content').scroll(setCurrentVarLink) $(window).resize(setCurrentVarLink) diff --git a/taoensso.nippy.benchmarks.html b/taoensso.nippy.benchmarks.html index b68d9b5..7d4d7c6 100644 --- a/taoensso.nippy.benchmarks.html +++ b/taoensso.nippy.benchmarks.html @@ -1,2 +1,2 @@ -Nippy 2.11.0-SNAPSHOT
Clojure serialization library
Namespaces
taoensso.nippy
High-performance JVM Clojure serialization library. Originally adapted from +Deep-Freeze (https://goo.gl/OePPGr).Public variables and functions:
- *custom-readers*
- *default-freeze-compressor-selector*
- *final-freeze-fallback*
- ->Compressable-LZMA2
- ->StressRecord
- aes128-encryptor
- byte-sized?
- compress
- decompress
- decrypt
- default-freeze-compressor-selector
- encrypt
- extend-freeze
- extend-thaw
- Freezable
- freezable?
- freeze
- freeze-fallback-as-str
- freeze-to-out!
- id-bigdec
- id-bigint
- id-biginteger
- id-boolean
- id-byte
- id-byte-as-long
- id-bytes
- id-char
- id-date
- id-double
- id-float
- id-int-as-long
- id-integer
- id-keyword
- id-keyword-depr1
- id-list
- id-long
- id-map
- id-map-depr1
- id-map-depr2
- id-meta
- id-nil
- id-prefixed-custom
- id-queue
- id-ratio
- id-reader
- id-reader-depr1
- id-record
- id-reserved
- id-seq
- id-serializable
- id-set
- id-short
- id-short-as-long
- id-sm-bytes
- id-sm-keyword
- id-sm-map
- id-sm-set
- id-sm-string
- id-sm-vec
- id-sorted-map
- id-sorted-map-depr1
- id-sorted-set
- id-string
- id-string-depr1
- id-uuid
- id-vec
- inspect-ba
- lz4-compressor
- lz4hc-compressor
- lzma2-compressor
- map->Compressable-LZMA2
- map->StressRecord
- read-biginteger
- read-bytes
- read-coll
- read-kvs
- read-kvs-depr1
- read-sm-bytes
- read-sm-coll
- read-sm-kvs
- read-sm-utf8
- read-utf8
- set-default-freeze-compressor-selector!
- short-sized?
- snappy-compressor
- stress-data
- stress-data-benchable
- stress-data-comparable
- swap-custom-readers!
- thaw
- thaw-from-in!
- when-debug
- write-biginteger
- write-bytes
- write-id
- write-ided-bytes
- write-ided-coll
- write-ided-keyword
- write-ided-kvs
- write-ided-long
- write-ided-map
- write-ided-set
- write-ided-string
- write-ided-vec
- write-sm-bytes
- write-sm-utf8
- write-utf8
taoensso.nippy.encryption
Simple no-nonsense crypto with reasonable defaults. Because your Clojure data deserves some privacy.Public variables and functions:
taoensso.nippy.tools
Utilities for third-party tools that want to add fully-user-configurable Nippy support. Used by Carmine and Faraday.Public variables and functions:
taoensso.nippy.benchmarks documentation Generated by Codox
Nippy 2.10.0 API documentation
\ No newline at end of file +taoensso.nippy.benchmarks
bench
(bench {:keys [reader? lzma2? fressian? laps], :or {laps 1}})bench*
macro
(bench* & body)bench1
(bench1 freezer thawer & [sizer])data
fressian-freeze
(fressian-freeze value)fressian-thaw
(fressian-thaw value)taoensso.nippy.benchmarks documentation Generated by Codox
Nippy 2.11.0-SNAPSHOT
\ No newline at end of file diff --git a/taoensso.nippy.compression.html b/taoensso.nippy.compression.html index 0069022..d26698a 100644 --- a/taoensso.nippy.compression.html +++ b/taoensso.nippy.compression.html @@ -1,8 +1,8 @@ -taoensso.nippy.benchmarks
taoensso.nippy.compression documentation Generated by Codox
Nippy 2.10.0 API documentation
\ No newline at end of file diff --git a/taoensso.nippy.encryption.html b/taoensso.nippy.encryption.html index 4eb7a81..78ca9c6 100644 --- a/taoensso.nippy.encryption.html +++ b/taoensso.nippy.encryption.html @@ -1,7 +1,7 @@ -taoensso.nippy.compression
->LZ4Compressor
(->LZ4Compressor compressor decompressor)Positional factory function for class taoensso.nippy.compression.LZ4Compressor. -->LZMA2Compressor
(->LZMA2Compressor compression-level)Positional factory function for class taoensso.nippy.compression.LZMA2Compressor. -->SnappyCompressor
(->SnappyCompressor)Positional factory function for class taoensso.nippy.compression.SnappyCompressor. -ICompressor
protocol
members
compress
(compress compressor ba)decompress
(decompress compressor ba)header-id
(header-id compressor)lz4-compressor
Default net.jpountz.lz4 compressor: +taoensso.nippy.compression documentation Generated by Codox
Nippy 2.11.0-SNAPSHOT
\ No newline at end of file +A good general-purpose compressor.taoensso.nippy.compression
->LZ4Compressor
(->LZ4Compressor compressor decompressor)Positional factory function for class taoensso.nippy.compression.LZ4Compressor. +->LZMA2Compressor
(->LZMA2Compressor compression-level)Positional factory function for class taoensso.nippy.compression.LZMA2Compressor. +->SnappyCompressor
(->SnappyCompressor)Positional factory function for class taoensso.nippy.compression.SnappyCompressor. +ICompressor
protocol
members
compress
(compress compressor ba)decompress
(decompress compressor ba)header-id
(header-id compressor)lz4-compressor
Default net.jpountz.lz4 compressor: Ratio: low. Write speed: very high. Read speed: very high. @@ -10,17 +10,17 @@ Write speed: very high. A good general-purpose compressor, competitive with Snappy. Thanks to Max Penet (@mpenet) for our first implementation, -Ref. https://github.com/mpenet/nippy-lz4lz4hc-compressor
Like `lz4-compressor` but trades some write speed for ratio. -lzma2-compressor
Default org.tukaani.xz.LZMA2 compressor: +Ref. https://github.com/mpenet/nippy-lz4lzma2-compressor
Default org.tukaani.xz.LZMA2 compressor: Ratio: high. Write speed: _very_ slow (also currently single-threaded). Read speed: slow. A specialized compressor for large, low-write data in space-sensitive -environments.snappy-compressor
Default org.iq80.snappy.Snappy compressor: Ratio: low. Write speed: very high. Read speed: very high. -A good general-purpose compressor.standard-header-ids
These'll support :auto thaw. -taoensso.nippy.encryption documentation Generated by Codox
Nippy 2.10.0 API documentation
taoensso.nippy.encryption
Simple no-nonsense crypto with reasonable defaults. Because your Clojure data +taoensso.nippy.encryption documentation Generated by Codox
Nippy 2.11.0-SNAPSHOT
\ No newline at end of file +increased danger if a key is somehow compromised.taoensso.nippy.encryption
Simple no-nonsense crypto with reasonable defaults. Because your Clojure data deserves some privacy.->AES128Encryptor
(->AES128Encryptor key-gen key-cache)Positional factory function for class taoensso.nippy.encryption.AES128Encryptor. -aes128-encryptor
Default 128bit AES encryptor with multi-round SHA-512 key-gen. Password form [:salted "my-password"] --------------------------------------- @@ -34,6 +34,6 @@ CONS: Using a small number of keys for many encrypted items means that if any compromised. Faster than `aes128-salted`, and harder to attack any particular key - but -increased danger if a key is somehow compromised.IEncryptor
protocol
members
decrypt
(decrypt encryptor pwd ba)encrypt
(encrypt encryptor pwd ba)header-id
(header-id encryptor)map->AES128Encryptor
(map->AES128Encryptor m__6289__auto__)Factory function for class taoensso.nippy.encryption.AES128Encryptor, taking a map of keywords to field values. -standard-header-ids
These'll support :auto thaw. -IEncryptor
protocol
members
decrypt
(decrypt encryptor pwd ba)encrypt
(encrypt encryptor pwd ba)header-id
(header-id encryptor)map->AES128Encryptor
(map->AES128Encryptor m__6289__auto__)Factory function for class taoensso.nippy.encryption.AES128Encryptor, taking a map of keywords to field values. +
Generated by Codox
Nippy 2.10.0 API documentation
taoensso.nippy
High-performance JVM Clojure serialization library. Originally adapted from +taoensso.nippy documentation Generated by Codox
Nippy 2.11.0-SNAPSHOT
\ No newline at end of file + :v1-compatibility? - support data frozen by legacy versions of Nippy? + :compressor - :auto (checks header, default) an ICompressor, or nil + :encryptor - :auto (checks header, default), an IEncryptor, or niltaoensso.nippy
High-performance JVM Clojure serialization library. Originally adapted from Deep-Freeze (https://goo.gl/OePPGr).*custom-readers*
dynamic
{<hash-or-byte-id> (fn [data-input])} -*default-freeze-compressor-selector*
dynamic
(fn selector [^bytes ba])->compressor used by `(freeze <x> {:compressor :auto}). -*final-freeze-fallback*
dynamic
Alpha - subject to change. -->Compressable-LZMA2
(->Compressable-LZMA2 value)Positional factory function for class taoensso.nippy.Compressable-LZMA2. -->StressRecord
(->StressRecord data)Positional factory function for class taoensso.nippy.StressRecord. -*default-freeze-compressor-selector*
dynamic
(fn selector [^bytes ba])->compressor used by `(freeze <x> {:compressor :auto}). +->Compressable-LZMA2
(->Compressable-LZMA2 value)Positional factory function for class taoensso.nippy.Compressable-LZMA2. +->StressRecord
(->StressRecord data)Positional factory function for class taoensso.nippy.StressRecord. +aes128-encryptor
Default 128bit AES encryptor with multi-round SHA-512 key-gen. Password form [:salted "my-password"] --------------------------------------- @@ -38,37 +37,36 @@ CONS: Using a small number of keys for many encrypted items means that if any compromised. Faster than `aes128-salted`, and harder to attack any particular key - but -increased danger if a key is somehow compromised.default-freeze-compressor-selector
(default-freeze-compressor-selector ba)Strategy: +increased danger if a key is somehow compromised.default-freeze-compressor-selector
(default-freeze-compressor-selector ba)Strategy: * Prioritize speed, but allow lz4. * Skip lz4 unless it's likely that lz4's space benefit will outweigh its - space overhead.extend-freeze
macro
(extend-freeze type custom-type-id [x out] & body)Extends Nippy to support freezing of a custom type (ideally concrete) with + space overhead.extend-freeze
macro
(extend-freeze type custom-type-id [x out] & body)Extends Nippy to support freezing of a custom type (ideally concrete) with given id of form: - * Keyword - 2 byte overhead, resistent to id collisions. - * Byte ∈[1, 128] - no overhead, subject to id collisions. + * Keyword - 2 byte overhead, resistent to id collisions + * Integer ∈[1, 128] - no overhead, subject to id collisions (defrecord MyType [data]) (extend-freeze MyType :foo/my-type [x data-output] ; Keyword id (.writeUTF [data-output] (:data x))) ;; or (extend-freeze MyType 1 [x data-output] ; Byte id - (.writeUTF [data-output] (:data x)))extend-thaw
macro
(extend-thaw custom-type-id [in] & body)Extends Nippy to support thawing of a custom type with given id: + (.writeUTF [data-output] (:data x)))extend-thaw
macro
(extend-thaw custom-type-id [in] & body)Extends Nippy to support thawing of a custom type with given id: (extend-thaw :foo/my-type [data-input] ; Keyword id (->MyType (.readUTF data-input))) ;; or (extend-thaw 1 [data-input] ; Byte id - (->MyType (.readUTF data-input)))Freezable
protocol
Be careful about extending to interfaces, Ref. http://goo.gl/6gGRlU. -members
freeze-to-out*
(freeze-to-out* this out)freezable?
(freezable? x & [{:keys [allow-clojure-reader? allow-java-serializable?]}])Alpha - subject to change, MAY BE BUGGY! + (->MyType (.readUTF data-input)))Freezable
protocol
Implementation detail. Be careful about extending to interfaces, +Ref. http://goo.gl/6gGRlU.members
-freeze-to-out
(-freeze-to-out this out)freezable?
(freezable? x & [{:keys [allow-clojure-reader? allow-java-serializable?]}])Alpha - subject to change, MAY BE BUGGY! Returns truthy value iff Nippy supports de/serialization of given argument. Conservative with default options. `:allow-clojure-reader?` and `:allow-java-serializable?` options may be used to also enable the relevant roundtrip fallback test(s). These tests are only **moderately reliable** since they're cached by arg type and don't test for -pre/post serialization equality (there's no good general way of doing so).freeze
(freeze x)(freeze x {:keys [compressor encryptor password skip-header?], :or {compressor :auto, encryptor aes128-encryptor}, :as opts})Serializes arg (any Clojure data type) to a byte array. To freeze custom -types, extend the Clojure reader or see `extend-freeze`.freeze-fallback-as-str
(freeze-fallback-as-str x out)Alpha-subject to change. -freeze-to-out!
(freeze-to-out! data-output x)Low-level API. Serializes arg (any Clojure data type) to a DataOutput. -id-bigdec
id-bigint
id-biginteger
id-boolean
id-byte
id-byte-as-long
id-bytes
id-char
id-date
id-double
id-float
id-int-as-long
id-integer
id-keyword
id-keyword-depr1
id-keyword-small
id-list
id-long
id-map
id-map-depr1
id-meta
id-nil
id-prefixed-custom
id-queue
id-ratio
id-reader
id-reader-depr1
id-record
id-reserved
id-seq
id-serializable
id-set
id-short
id-short-as-long
id-sorted-map
id-sorted-set
id-string
id-string-depr1
id-string-small
id-uuid
id-vector
inspect-ba
(inspect-ba ba & [thaw-opts])Alpha - subject to change. -lz4-compressor
Default net.jpountz.lz4 compressor: +pre/post serialization equality (there's no good general way of doing so).freeze
(freeze x)(freeze x {:keys [compressor encryptor password], :or {compressor :auto, encryptor aes128-encryptor}, :as opts})Serializes arg (any Clojure data type) to a byte array. To freeze custom +types, extend the Clojure reader or see `extend-freeze`.freeze-to-out!
(freeze-to-out! data-output x)Serializes arg (any Clojure data type) to a DataOutput +lz4-compressor
Default net.jpountz.lz4 compressor: Ratio: low. Write speed: very high. Read speed: very high. @@ -76,30 +74,33 @@ Write speed: very high. A good general-purpose compressor, competitive with Snappy. Thanks to Max Penet (@mpenet) for our first implementation, -Ref. https://github.com/mpenet/nippy-lz4lz4hc-compressor
Like `lz4-compressor` but trades some write speed for ratio. -lzma2-compressor
Default org.tukaani.xz.LZMA2 compressor: +Ref. https://github.com/mpenet/nippy-lz4lzma2-compressor
Default org.tukaani.xz.LZMA2 compressor: Ratio: high. Write speed: _very_ slow (also currently single-threaded). Read speed: slow. A specialized compressor for large, low-write data in space-sensitive -environments.map->Compressable-LZMA2
(map->Compressable-LZMA2 m__6289__auto__)Factory function for class taoensso.nippy.Compressable-LZMA2, taking a map of keywords to field values. -map->StressRecord
(map->StressRecord m__6289__auto__)Factory function for class taoensso.nippy.StressRecord, taking a map of keywords to field values. -read-biginteger
macro
(read-biginteger in)read-bytes
macro
(read-bytes in & [small?])read-compact-long
macro
(read-compact-long in)read-utf8
macro
(read-utf8 in & [small?])set-default-freeze-compressor-selector!
(set-default-freeze-compressor-selector! selector)Sets root binding of `*default-freeze-compressor-selector*`. -map->Compressable-LZMA2
(map->Compressable-LZMA2 m__6289__auto__)Factory function for class taoensso.nippy.Compressable-LZMA2, taking a map of keywords to field values. +map->StressRecord
(map->StressRecord m__6289__auto__)Factory function for class taoensso.nippy.StressRecord, taking a map of keywords to field values. +set-default-freeze-compressor-selector!
(set-default-freeze-compressor-selector! selector)Sets root binding of `*default-freeze-compressor-selector*` +snappy-compressor
Default org.iq80.snappy.Snappy compressor: Ratio: low. Write speed: very high. Read speed: very high. -A good general-purpose compressor.stress-data
Reference data used for tests & benchmarks. -stress-data-benchable
Reference data with stuff removed that breaks reader or other utils we'll -be benching against.stress-data-comparable
Reference data with stuff removed that breaks roundtrip equality. -swap-custom-readers!
(swap-custom-readers! f)thaw
(thaw ba)(thaw ba {:keys [v1-compatibility? compressor encryptor password], :or {v1-compatibility? true, compressor :auto, encryptor :auto}, :as opts})Deserializes a frozen object from given byte array to its original Clojure -data type. Supports data frozen with current and all previous versions of -Nippy. To thaw custom types, extend the Clojure reader or see `extend-thaw`. +A good general-purpose compressor.stress-data-benchable
Reference data with stuff removed that breaks reader or other utils we'll +be benching againstthaw
(thaw ba)(thaw ba {:keys [v1-compatibility? compressor encryptor password], :or {compressor :auto, encryptor :auto}, :as opts})Deserializes a frozen object from given byte array to its original Clojure +data type. To thaw custom types, extend the Clojure reader or see `extend-thaw`. + +** By default, supports data frozen with Nippy v2+ ONLY ** +Add `{:v1-compatibility? true}` option to support thawing of data frozen with +legacy versions of Nippy. Options include: - :compressor - An ICompressor, :auto (requires Nippy header), or nil. - :encryptor - An IEncryptor, :auto (requires Nippy header), or nil.thaw-from-in!
(thaw-from-in! data-input)Low-level API. Deserializes a frozen object from given DataInput to its -original Clojure data type.when-debug-mode
macro
(when-debug-mode & body)write-biginteger
macro
(write-biginteger out x)write-bytes
macro
(write-bytes out ba & [small?])write-compact-long
macro
(write-compact-long out x)Uses 2->9 bytes. -write-id
macro
(write-id out id)write-utf8
macro
(write-utf8 out x & [small?])
thaw-from-in!
(thaw-from-in! data-input)Deserializes a frozen object from given DataInput to its original Clojure +data type
Generated by Codox
Nippy 2.10.0 API documentation
taoensso.nippy.tools
Utilities for third-party tools that want to add fully-user-configurable -Nippy support. Used by Carmine and Faraday.
*thaw-opts*
dynamic
->WrappedForFreezing
(->WrappedForFreezing value opts)Positional factory function for class taoensso.nippy.tools.WrappedForFreezing. -
freeze
(freeze x & [{:keys [default-opts]}])Like `nippy/freeze` but takes options from special argument wrapper when -present.
map->WrappedForFreezing
(map->WrappedForFreezing m__6289__auto__)Factory function for class taoensso.nippy.tools.WrappedForFreezing, taking a map of keywords to field values. -
thaw
(thaw ba & [{:keys [default-opts]}])Like `nippy/thaw` but takes options from *thaw-opts* binding. -
with-thaw-opts
macro
(with-thaw-opts opts & body)Evaluates body using given options for any automatic deserialization in -context.
wrap-for-freezing
(wrap-for-freezing value & [opts])Wraps arg (any freezable data type) so that (tools/freeze <wrapped-arg>) -will serialize the arg using given options.
wrapped-for-freezing?
(wrapped-for-freezing? x)Generated by Codox
Nippy 2.11.0-SNAPSHOT
taoensso.nippy.tools
Utilities for third-party tools that want to add fully-user-configurable +Nippy support. Used by Carmine and Faraday.
->WrappedForFreezing
(->WrappedForFreezing value opts)Positional factory function for class taoensso.nippy.tools.WrappedForFreezing. +
freeze
(freeze x & [{:keys [default-opts]}])Like `nippy/freeze` but takes options from special argument wrapper when +present.
map->WrappedForFreezing
(map->WrappedForFreezing m__6289__auto__)Factory function for class taoensso.nippy.tools.WrappedForFreezing, taking a map of keywords to field values. +
thaw
(thaw ba & [{:keys [default-opts]}])Like `nippy/thaw` but takes options from *thaw-opts* binding. +
with-thaw-opts
macro
(with-thaw-opts opts & body)Evaluates body using given options for any automatic deserialization in +context.
wrap-for-freezing
(wrap-for-freezing value & [opts])Wraps arg (any freezable data type) so that (tools/freeze <wrapped-arg>) +will serialize the arg using given options.
Generated by Codox
Nippy 2.10.0 API documentation
taoensso.nippy.utils
freezable?
(freezable? x & [{:keys [allow-clojure-reader? allow-java-serializable?]}])Alpha - subject to change, MAY BE BUGGY! +taoensso.nippy.utils documentation Generated by Codox
Nippy 2.11.0-SNAPSHOT
\ No newline at end of file +pre/post serialization equality (there's no good general way of doing so).taoensso.nippy.utils
freezable?
(freezable? x & [{:keys [allow-clojure-reader? allow-java-serializable?]}])Alpha - subject to change, MAY BE BUGGY! Returns truthy value iff Nippy supports de/serialization of given argument. Conservative with default options. `:allow-clojure-reader?` and `:allow-java-serializable?` options may be used to also enable the relevant roundtrip fallback test(s). These tests are only **moderately reliable** since they're cached by arg type and don't test for -pre/post serialization equality (there's no good general way of doing so).readable?
serializable?