(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`.
(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.
(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).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close