Liking cljdoc? Tell your friends :D

d-core.core.codecs.protocol


Codeccljprotocol

decodeclj

(decode codec payload)

Decode a transport representation (string/bytes) back into a Clojure value.

Decode a transport representation (string/bytes) back into a Clojure value.

encodeclj

(encode codec value)

Encode a Clojure value into a transport representation (string/bytes).

Encode a Clojure value into a transport representation (string/bytes).

schema-codecclj

(schema-codec schema)
(schema-codec schema opts)

Creates a SchemaCodec that runs schema/->wire! on encode and schema/coerce! on decode. Composes as the first stage of a PipelineCodec.

Creates a `SchemaCodec` that runs `schema/->wire!` on encode and `schema/coerce!` on decode.
Composes as the first stage of a `PipelineCodec`.
raw docstring

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