Liking cljdoc? Tell your friends :D

bites.core


def-fromcljmacro

(def-from sym doc-string klass)

Defines a type-hinted (per <klass>) function named <sym> taking 1 or 2 args, which delegates to from-bytes (hard-coding <klass> as the first argument to it). This (obviously) won't work for java.io.Serializable.

Defines a type-hinted (per <klass>) function named <sym> taking 1 or 2 args,
which delegates to `from-bytes` (hard-coding <klass> as the first argument to it).
This (obviously) won't work for `java.io.Serializable`.
sourceraw docstring

from-bytesclj

(from-bytes klass x)
(from-bytes klass x opts)

Wrapper around fromBytes multi-method. Requires type-hinting at the call-site. See def-from for defining type-hinted variants.

Wrapper around `fromBytes` multi-method.
Requires type-hinting at the call-site.
See `def-from` for defining type-hinted variants.
sourceraw docstring

to-bytesclj

(to-bytes x)
(to-bytes x opts)

Wrapper fn around toBytes protocol. Turns <x> into a byte-array (per applicable <opts>). Does not close any input-streams other than the one(s) internally created (i.e. if <x> is one it will NOT be closed).

Wrapper fn around `toBytes` protocol. Turns <x> into a byte-array (per applicable <opts>).
Does not close any input-streams other than the one(s) internally created
(i.e. if <x> is one it will NOT be closed).
sourceraw docstring

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

× close