This commit is contained in:
alexander.nutz
2024-03-28 17:55:28 +01:00
parent 48f0e27f77
commit b87c0755ad
3 changed files with 84 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ fun Provider<RawSource>.readerSequence(): ByteBatchSequence =
var i = 0
while (!(buffered.exhausted() || i == limit - 1))
out[i ++] = buffered.readByte()
return out.sliceArray(0..i)
return out.sliceArray(0..<i)
}
override fun nextBytes(dest: ByteArray): Int =