An interface for reading bytes from a Uint8Array
An interface for reading bytes from a Uint8Array
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()
(getByte this index)
(getBytes this off length)
(reset this)
(getBytesRead this)
(notifyBytesRead this count)
(readSignedByte this)
(readSignedBytes this length)
return signed byte view on memory
return signed byte view on memory
(readUnsignedByte this)
(readUnsignedBytes this length)
return unsigned byte view on memory
return unsigned byte view on memory
(getBytesWritten this)
(getFreeCapacity this)
remaining free bytes to write
remaining free bytes to write
(notifyBytesWritten this count)
(room? this length)
(writeByte this byte)
(writeBytes this bytes)
(writeBytes this bytes offset length)
(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
(toByteArray this)
get byte-array of current buffer contents. does not close.
get byte-array of current buffer contents. does not close.
(readable-buffer backing)
(readable-buffer backing backing-offset)
Build a BufferReader over a collection of bytes.
Build a BufferReader over a collection of bytes.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close