(decbor e)
Given the clj-cbor representation of an expression, build the Dhall AST.
Will throw an exception of type :dhall-clj.fail/binary
on malformed input.
Given the clj-cbor representation of an expression, build the Dhall AST. Will throw an exception of type `:dhall-clj.fail/binary` on malformed input.
(decode binary-expr)
Takes a bytearray binary-expr
, and tries to decode it into Dhall AST.
Will throw an exception of type dhall-clj.fail/binary
on malformed input.
Takes a bytearray `binary-expr`, and tries to decode it into Dhall AST. Will throw an exception of type `dhall-clj.fail/binary` on malformed input.
(encode e)
(encode e version)
Encode e
(which should be Dhall AST) into its binary form.
version
is one of supported-versions
. Will return a ByteArray
.
Encode `e` (which should be Dhall AST) into its binary form. `version` is one of `supported-versions`. Will return a `ByteArray`.
Interface for serializing expressions in binary format
Interface for serializing expressions in binary format
(cbor e)
Transform an expression into a CBOR-ready Clojure data structure
Transform an expression into a CBOR-ready Clojure data structure
The currently supported version for the binary protocol
The currently supported version for the binary protocol
A list of versions that will be accepted for deserialization
A list of versions that will be accepted for deserialization
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close