Liking cljdoc? Tell your friends :D

gloss.io


contiguousclj

(contiguous buf-seq)

Takes a sequence of ByteBuffers and returns a single contiguous ByteBuffer.

Takes a sequence of ByteBuffers and returns a single contiguous ByteBuffer.
sourceraw docstring

decodeclj

(decode frame bytes)
(decode frame bytes no-remainder?)

Turns bytes into a single frame value. If there are too few or too many bytes for the frame, an exception is thrown.

Turns bytes into a single frame value.  If there are too few or too many bytes
for the frame, an exception is thrown.
sourceraw docstring

decode-allclj

(decode-all frame bytes)

Turns bytes into a sequence of frame values. If there are bytes left over at the end of the sequence, an exception is thrown.

Turns bytes into a sequence of frame values.  If there are bytes left over at the end
of the sequence, an exception is thrown.
sourceraw docstring

decode-channelclj

source

decode-channel-headersclj

source

decode-streamclj

(decode-stream src frame)

Given a stream that emits bytes, returns a channel that emits decoded frames whenever there are sufficient bytes.

Given a stream that emits bytes, returns a channel that emits decoded frames whenever
there are sufficient bytes.
sourceraw docstring

decode-stream-headersclj

(decode-stream-headers src & frames)

Given a channel that emits bytes, returns a channel that will emit one decoded frame for each frame passed into the function. After those frames have been decoded, the channel will simply emit any bytes that are passed into the source channel.

Given a channel that emits bytes, returns a channel that will emit one decoded frame for
each frame passed into the function.  After those frames have been decoded, the channel will
simply emit any bytes that are passed into the source channel.
sourceraw docstring

encodeclj

(encode frame val)

Turns a frame value into a sequence of ByteBuffers.

Turns a frame value into a sequence of ByteBuffers.
sourceraw docstring

encode-allclj

(encode-all frame vals)

Turns a sequence of frame values into a sequence of ByteBuffers.

Turns a sequence of frame values into a sequence of ByteBuffers.
sourceraw docstring

encode-to-bufferclj

(encode-to-buffer frame buf vals)

Encodes a sequence of values, and writes them to a ByteBuffer.

Encodes a sequence of values, and writes them to a ByteBuffer.
sourceraw docstring

encode-to-streamclj

(encode-to-stream frame output-stream vals)

Encodes a sequence of values, and writes them to an OutputStream.

Encodes a sequence of values, and writes them to an OutputStream.
sourceraw docstring

lazy-decode-allclj

(lazy-decode-all frame bytes)

Turns bytes into a lazy sequence of frame values. If there are bytes left over at the end of the sequence, an exception is thrown.

Turns bytes into a lazy sequence of frame values.  If there are bytes left over at the
end of the sequence, an exception is thrown.
sourceraw docstring

to-buf-seqclj

(to-buf-seq x)

Converts the value to a sequence of ByteBuffers.

Converts the value to a sequence of ByteBuffers.
sourceraw docstring

to-byte-bufferclj

(to-byte-buffer x)

Converts the value to a Bytebuffer.

Converts the value to a Bytebuffer.
sourceraw docstring

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

× close