Is there a reason there can't be a public common A...
# ktor
a
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
cc @Rustam Siniukov
r
No specific reason. Please file a ticket in youtrack so that we can implement it.
a