Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ public async ValueTask<int> ReadAsync(byte[] buffer, int offset, int count, Canc

public void Write(byte[] buffer, int offset, int count)
{
for (var i = offset; i < count; i++)
for (int i = 0; i < count; i++)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep var here.

_outputBuffer.Enqueue(buffer[offset + i]);
}
public ValueTask WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken = default)
{
for (var i = offset; i < count; i++)
for (int i = 0; i < count; i++)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep var here.

_outputBuffer.Enqueue(buffer[offset + i]);
return ValueTask.CompletedTask;
}
Expand Down