ChainedByteBuffer
class ChainedByteBuffer(chunkSize: Int, direct: Boolean, limit: Long) : Iterable<ByteBuffer>
Content copied to clipboard
Linked List of ByteBuffers, able to be written to as if it was a single one. Automatically expands if needed.
Constructors
Link copied to clipboard
fun ChainedByteBuffer(chunkSize: Int = 1024, direct: Boolean = false, limit: Long = 0)
Content copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Write the full remaining content of a bytebuffer to the buffer and increment its position
Write an 8-bit signed byte to the buffer and increment its position.
Write the full remaining content of a bytearray to the buffer and increment its position
Write an 8-bit unsigned byte to the buffer and increment its position.
Link copied to clipboard
Link copied to clipboard
Convert this buffer into a bytebuffer of the same capacity and content.