Skip to content

Commit b8854eb

Browse files
committed
Read from offset
1 parent 34b9c6b commit b8854eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/kotlin/src/main/kotlin/io/appwrite/Client.kt.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ class Client @JvmOverloads constructor(
321321
}
322322

323323
generateSequence {
324-
val readBytes = input.read(buffer)
324+
val readBytes = input.read(buffer, offset.toInt(), CHUNK_SIZE)
325325
if (readBytes >= 0) {
326326
buffer.copyOf(readBytes)
327327
} else {

0 commit comments

Comments
 (0)