Liking cljdoc? Tell your friends :D

fress.impl.buffer


BufferReadercljs

An interface for reading bytes from a Uint8Array

An interface for reading bytes from a Uint8Array
sourceraw docstring

BufferWritercljs

used on fixed size buffers

used on fixed size buffers
sourceraw docstring

byte-streamcljs

(byte-stream)
source

BytesOutputStreamcljs

Backed by a plain array, 'BytesOutputStream' grows as bytes are written, is only realized into an byte-array when close() is called.

In future can use ArrayBuffer.transfer()

Backed by a plain array, 'BytesOutputStream' grows as bytes are written,
is only realized into an byte-array when close() is called.

In future can use ArrayBuffer.transfer()
sourceraw docstring

IBuffercljsprotocol

getBytecljs

(getByte this index)

getBytescljs

(getBytes this off length)

resetcljs

(reset this)
source

IBufferReadercljsprotocol

getBytesReadcljs

(getBytesRead this)

notifyBytesReadcljs

(notifyBytesRead this count)

readSignedBytecljs

(readSignedByte this)

readSignedBytescljs

(readSignedBytes this length)

return signed byte view on memory

return signed byte view on memory

readUnsignedBytecljs

(readUnsignedByte this)

readUnsignedBytescljs

(readUnsignedBytes this length)

return unsigned byte view on memory

return unsigned byte view on memory
source

IBufferWritercljsprotocol

getBytesWrittencljs

(getBytesWritten this)

getFreeCapacitycljs

(getFreeCapacity this)

remaining free bytes to write

remaining free bytes to write

notifyBytesWrittencljs

(notifyBytesWritten this count)

room?cljs

(room? this length)

writeBytecljs

(writeByte this byte)

writeBytescljs

(writeBytes this bytes)
(writeBytes this bytes offset length)
source

IStreamingWritercljsprotocol

flushTocljs

(flushTo this out)
(flushTo this out offset)

write bytes to externally provided arraybuffer source at the given offset

write bytes to externally provided arraybuffer source at the given offset

toByteArraycljs

(toByteArray this)

get byte-array of current buffer contents. does not close.

get byte-array of current buffer contents. does not close.
source

readable-buffercljs

(readable-buffer backing)
(readable-buffer backing backing-offset)

Build a BufferReader over a collection of bytes.

Build a BufferReader over a collection of bytes.
sourceraw docstring

with-capacitycljs

(with-capacity n)
source

writable-buffercljs

(writable-buffer)
(writable-buffer backing)
(writable-buffer backing backing-offset)

Build a BufferWriter over a typed-array. If nil, returns a BytesOutputStream.

Build a BufferWriter over a typed-array. If nil, returns a BytesOutputStream.
sourceraw docstring

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

× close