copyTo

fun copyTo(destination: ByteArray, destinationOffset: Int = 0, startIndex: Int = 0, endIndex: Int = byteArray.size)

将当前资源中字节数组拷贝到目标数组中。