fillSlice

fun fillSlice(b: BytesRef, start: Long, length: Int)

Gets a slice out of PagedBytes starting at start with a given length. Iff the slice spans across a block border this method will allocate sufficient resources and copy the paged data.

Slices spanning more than two blocks are not supported.