Liking cljdoc? Tell your friends :D

taoensso.msgpack

Clj/s MessagePack implementation adapted from `msgpack-cljc` by @rosejn.

packclj/s≠

(pack clj)
(pack output clj)
clj
1 arity: returns MessagePack-encoded byte[] for given Clj value.
2 arity: writes  MessagePack-encoded bytes  for given Clj value to
  given DataOutput and returns the DataOutput.
cljs
1 arity: returns MessagePack-encoded Uint8Array for given Cljs value.
2 arity: writes  MessagePack-encoded bytes      for given Cljs value to
  given output ∈ #{Uint8Array ArrayBuffer DataView subs} and returns an
  output stream that can be dereffed to get Uint8Array.
source (clj)source (cljs)

unpackclj/s≠

(unpack input)
clj
Returns Clj value for given MessagePack-encoded input ∈ #{byte[] DataInput}.
cljs
Returns Cljs value for given MessagePack-encoded input
∈ #{Uint8Array ArrayBuffer DataView subs}.
source (clj)source (cljs)

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close