https://kotlinlang.org logo
i

Ifvwm

05/21/2020, 5:49 AM
how to clear a ByteArray? var aob = ByteArray(1024)
n

nkiesel

05/21/2020, 6:42 AM
I don't think you can clear it
you can set all elements, but you cannot reduce the size
m

Matteo Mirk

05/22/2020, 10:41 AM
Copy code
aob.fill(0) // set all elements to 0
84 Views