Housekeeping.
This commit is contained in:
parent
27bd0d2055
commit
07e542dc52
2 changed files with 4 additions and 4 deletions
|
|
@ -52,7 +52,7 @@ As an example of what Nippy can do, let's take a look at its own reference stres
|
||||||
```clojure
|
```clojure
|
||||||
nippy/stress-data
|
nippy/stress-data
|
||||||
=>
|
=>
|
||||||
{:bytes (byte-array [(byte 1) (byte 2) (byte 3)])
|
{:bytes (byte-array [(byte 1) (byte 2) (byte 3)])
|
||||||
:nil nil
|
:nil nil
|
||||||
:boolean true
|
:boolean true
|
||||||
|
|
||||||
|
|
@ -99,7 +99,7 @@ Deserialize it:
|
||||||
|
|
||||||
```clojure
|
```clojure
|
||||||
(nippy/thaw-from-bytes frozen-stress-data)
|
(nippy/thaw-from-bytes frozen-stress-data)
|
||||||
=> {:bytes (byte-array [(byte 1) (byte 2) (byte 3)])
|
=> {:bytes (byte-array [(byte 1) (byte 2) (byte 3)])
|
||||||
:nil nil
|
:nil nil
|
||||||
:boolean true
|
:boolean true
|
||||||
<...> }
|
<...> }
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@
|
||||||
~@body)))
|
~@body)))
|
||||||
|
|
||||||
(defmacro coll-freezer
|
(defmacro coll-freezer
|
||||||
"Helper to freeze simple collection types."
|
"Helper to extend Freezable protocol to simple collection types."
|
||||||
[type id & body]
|
[type id & body]
|
||||||
`(freezer
|
`(freezer
|
||||||
~type ~id
|
~type ~id
|
||||||
|
|
@ -243,7 +243,7 @@
|
||||||
(def stress-data
|
(def stress-data
|
||||||
"Reference data used for tests & benchmarks."
|
"Reference data used for tests & benchmarks."
|
||||||
{;; Breaks reader, roundtrip equality
|
{;; Breaks reader, roundtrip equality
|
||||||
:bytes (byte-array [(byte 1) (byte 2) (byte 3)])
|
:bytes (byte-array [(byte 1) (byte 2) (byte 3)])
|
||||||
|
|
||||||
:nil nil
|
:nil nil
|
||||||
:boolean true
|
:boolean true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue