Hey, how to convert this Swift code to Kotlin? ```...
# kotlin-native
t
Hey, how to convert this Swift code to Kotlin?
Copy code
var buffer = [UInt8](repeating: 0, count: 8)
while inputStream.hasBytesAvailable{
    inputStream.read(&buffer, maxLength: buffer.count)
    outputStream.write(&buffer, maxLength: buffer.count)
}