File tree Expand file tree Collapse file tree 4 files changed +209
-142
lines changed Expand file tree Collapse file tree 4 files changed +209
-142
lines changed Original file line number Diff line number Diff line change @@ -111,5 +111,19 @@ You can also define your own Extended types with `extend-msgpack`.
111111; => (#user.Person{:name "bob"} 5 "test")
112112```
113113
114+ ### Options
115+ All pack and unpack functions take an optional map of options:
116+ * ` :compatibility-mode `
117+ Serialize/deserialize strings and bytes using the raw-type defined here:
118+ https://github.com/msgpack/msgpack/blob/master/spec-old.md
119+
120+ Note: No error is thrown if an unpacked value is reserved under the old spec
121+ but defined under the new spec. We always deserialize something if we can
122+ regardless of ` compatibility-mode ` .
123+
124+ ``` clojure
125+ (msg/pack (byte-array (byte 9 )) {:compatibility-mode true })
126+ ```
127+
114128## License
115129clojure-msgpack is MIT licensed. See the included LICENSE file for more details.
You can’t perform that action at this time.
0 commit comments