is there a way to tell a kotlin ByteArray that it ...
# announcements
x
is there a way to tell a kotlin ByteArray that it needs to be cast to an array of bytes for an overloaded vararg byte?
d
Do you mean something like:
Copy code
fun foo() {
        val array = ByteArray(5)
        bar(*array)
    }
    fun bar(vararg byte: Byte) {
        
    }
x
yes, I forgot about the * operator, that fixes it