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()
(getBytes this off length)
(reset this)
(close this)
(getByte this index)
(readSignedByte this)
(notifyBytesRead this count)
(readUnsignedBytes this length)
return unsigned byte view on memory
return unsigned byte view on memory
(readSignedBytes this length)
return signed byte view on memory
return signed byte view on memory
(readUnsignedByte this)
(getBytesRead this)
(-writeByte this byte)
(notifyBytesWritten this count)
(writeBytes this bytes)
(writeBytes this bytes offset length)
(getFreeCapacity this)
remaining free bytes to write
remaining free bytes to write
(getBytesWritten this)
(room? this length)
(writeByte this byte)
(wrap this out)
(wrap this out offset)
The new buffer will be backed by the given byte array; that is, modifications to the buffer will cause the array to be modified and vice versa.
The new buffer will be backed by the given byte array; that is, modifications to the buffer will cause the array to be modified and vice versa.
(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.
(writable-buffer)
(writable-buffer backing)
(writable-buffer backing backing-offset)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close