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
|
||||
nippy/stress-data
|
||||
=>
|
||||
{:bytes (byte-array [(byte 1) (byte 2) (byte 3)])
|
||||
{:bytes (byte-array [(byte 1) (byte 2) (byte 3)])
|
||||
:nil nil
|
||||
:boolean true
|
||||
|
||||
|
|
@ -99,7 +99,7 @@ Deserialize it:
|
|||
|
||||
```clojure
|
||||
(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
|
||||
:boolean true
|
||||
<...> }
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@
|
|||
~@body)))
|
||||
|
||||
(defmacro coll-freezer
|
||||
"Helper to freeze simple collection types."
|
||||
"Helper to extend Freezable protocol to simple collection types."
|
||||
[type id & body]
|
||||
`(freezer
|
||||
~type ~id
|
||||
|
|
@ -243,7 +243,7 @@
|
|||
(def stress-data
|
||||
"Reference data used for tests & benchmarks."
|
||||
{;; Breaks reader, roundtrip equality
|
||||
:bytes (byte-array [(byte 1) (byte 2) (byte 3)])
|
||||
:bytes (byte-array [(byte 1) (byte 2) (byte 3)])
|
||||
|
||||
:nil nil
|
||||
:boolean true
|
||||
|
|
|
|||
Loading…
Reference in a new issue