https://kotlinlang.org logo
#ktor
Title
# ktor
a

Aaron Todd

05/21/2021, 5:29 PM
Is there a reason there can't be a public common API that does something similar to this? It seems useful to be able to have a non-suspend version of this in
common
for
ByteArray
but I'm sure I'm missing something (or even just
fun readAvailable(dest: ByteArray, offset: Int = 0, len: Int = dst.size): Int
where this function reads up to
len
bytes of
availableForRead
a

Aleksei Tirman [JB]

06/02/2021, 8:25 AM
cc @Rustam Siniukov
r

Rustam Siniukov

06/02/2021, 10:48 AM
No specific reason. Please file a ticket in youtrack so that we can implement it.
a

Aaron Todd

06/02/2021, 12:24 PM
2 Views