get

fun get(bytesID: Int, ref: BytesRef): BytesRef

Populates and returns a BytesRef with the bytes for the given bytesID.

Note: the given bytesID must be a positive integer less than the current size (.size)

Return

the given BytesRef instance populated with the bytes for the given bytesID

Parameters

bytesID

the id

ref

the BytesRef to populate