3 ms·
I have no experience in kotlin but many other languages that use iterators would go with something like for length, bytesRead in input.bytes() { //... Edi
by Tarean 10y ago
I have no experience in kotlin but many other languages that use iterators would go with something like
for length, bytesRead in input.bytes() { //...
Edit: quick google search, the actual syntax is
file.forEachBlock { bytes, size -> //...