Liking cljdoc? Tell your friends :D
All platforms.

bencode-cljc.core

A functional Clojure(script) BEncode serialization library.

A functional Clojure(script) BEncode serialization library.
raw docstring

deserializeclj/s

(deserialize bencoded-str)

Deserialize a BEncoded string into a Clojure(script) data structure.

Returns a data structure on success, and nil on failure

Deserialize a BEncoded string into a Clojure(script) data structure.

Returns a data structure on success, and nil on failure
sourceraw docstring

serializeclj/s

(serialize object)

Serialize a given Clojure(script) object to a BEncode string.

Supports integers, strings, maps, and lists natively. Map keys must be strings, or coercable to strings. Coerces keywords to strings using 'name. Caution, this truncates namespaced keywords. Coerces vectors to list. Sets are not supported. Nil values are not supported. Consider an empty list.

Returns the BEncoded string on success, and nil on failure

Serialize a given Clojure(script) object to a BEncode string.

Supports integers, strings, maps, and lists natively. Map keys must be strings, or coercable to strings.
Coerces keywords to strings using 'name. Caution, this truncates namespaced keywords.
Coerces vectors to list. Sets are not supported.
Nil values are not supported. Consider an empty list.

Returns the BEncoded string on success, and nil on failure
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close