copyTo

fun ByteBuffer.copyTo(destination: Memory, offset: Int): Unit

Copy byte from this buffer moving it’s position to the destination at offset.