We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In AsynchronousFileChannel.sink, the position is not increased when sending ByteBuffer to the underlying channel: https://github.com/zio/zio-nio/blob/series/2.x/nio/jvm/src/main/scala/zio/nio/channels/AsynchronousFileChannel.scala#L162
ZStream .repeatZIOWithSchedule( write(buffer, currentPos), Schedule.recurWhileZIO(Function.const(buffer.hasRemaining)) ) .runSum
Between each call to write here the position must be advanced. writeChunk seems to do it correctly: https://github.com/zio/zio-nio/blob/series/2.x/nio/jvm/src/main/scala/zio/nio/channels/AsynchronousFileChannel.scala#L86
write
writeChunk
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In AsynchronousFileChannel.sink, the position is not increased when sending ByteBuffer to the underlying channel:
https://github.com/zio/zio-nio/blob/series/2.x/nio/jvm/src/main/scala/zio/nio/channels/AsynchronousFileChannel.scala#L162
Between each call to
write
here the position must be advanced.writeChunk
seems to do it correctly:https://github.com/zio/zio-nio/blob/series/2.x/nio/jvm/src/main/scala/zio/nio/channels/AsynchronousFileChannel.scala#L86
The text was updated successfully, but these errors were encountered: