copy

fun copy(in: IndexInput, byteCount: Long)

Read this many bytes from in


fun copy(bytes: BytesRef, out: BytesRef)

Copy BytesRef in, setting BytesRef out to the result. Do not use this if you will use freeze(true). This only supports bytes.length <= blockSize