Liking cljdoc? Tell your friends :D

nrepl.bencode

A netstring and bencode implementation for Clojure.

A netstring and bencode implementation for Clojure.

colon

source

comma

source

minus

source

read-bencode

(read-bencode input)

Read bencode token from the input stream.

Read bencode token from the input stream.
sourceraw docstring

read-netstring

(read-netstring input)

Reads a classic netstring from input—an InputStream. Returns the contained binary data as byte array.

Reads a classic netstring from input—an InputStream. Returns the
contained binary data as byte array.
sourceraw docstring

write-bencodemultimethod

Write the given thing to the output stream. “Thing” means here a string, map, sequence or integer. Alternatively an ByteArray may be provided whose contents are written as a bytestring. Similar the contents of a given InputStream are written as a byte string. Named things (symbols or keywords) are written in the form 'namespace/name'.

Write the given thing to the output stream. “Thing” means here a
string, map, sequence or integer. Alternatively an ByteArray may
be provided whose contents are written as a bytestring. Similar
the contents of a given InputStream are written as a byte string.
Named things (symbols or keywords) are written in the form
'namespace/name'.
sourceraw docstring

write-netstring

(write-netstring output content)

Write the given binary data to the output stream in form of a classic netstring.

Write the given binary data to the output stream in form of a classic
netstring.
sourceraw docstring

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

× close