That way don't I end up with two copies of the dat...
# announcements
a
That way don't I end up with two copies of the data, then? I'm thinking:
Copy code
data class Thing(private val data: ByteArray) {
val copy = Arrays.copyOf(data, data.size)
}
Even if I use
copy
exclusively, I'm still holding a reference to
data