append

fun append(bytes: BytesRef)

Appends the bytes in the provided BytesRef at the current position.


fun append(srcPool: ByteBlockPool, srcOffset: Long, length: Int)

Append the bytes from a source ByteBlockPool at a given offset and length

Parameters

srcPool

the source pool to copy from

srcOffset

the source pool offset

length

the number of bytes to copy


fun append(bytes: ByteArray, offset: Int = 0, length: Int = bytes.size)

Append the provided byte array at the current position.

Parameters

bytes

the byte array to write