createByteVector

Create a byte array in the buffer.

Return

The offset in the buffer where the encoded array starts.

Parameters

arr

A source array with data


fun createByteVector(arr: ByteArray, offset: Int, length: Int): VectorOffset<Byte>

Create a byte array in the buffer.

Return

The offset in the buffer where the encoded array starts.

Parameters

arr

a source array with data.

offset

the offset in the source array to start copying from.

length

the number of bytes to copy from the source array.


fun createByteVector(data: ReadBuffer, from: Int = 0, until: Int = data.limit): VectorOffset<Byte>

Create a byte array in the buffer.

The source ReadBuffer position is advanced until ReadBuffer.limit after this call.

Return

The offset in the buffer where the encoded array starts.

Parameters

data

A source ReadBuffer with data.