We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 786ba0b commit 5591ddbCopy full SHA for 5591ddb
CommunityToolkit.HighPerformance/Streams/MemoryStream{TSource}.Memory.cs
@@ -79,9 +79,8 @@ public sealed override int Read(Span<byte> buffer)
79
{
80
MemoryStream.ValidateDisposed(this.disposed);
81
82
- int
83
- bytesAvailable = this.source.Length - this.position,
84
- bytesCopied = Math.Min(bytesAvailable, buffer.Length);
+ int bytesAvailable = this.source.Length - this.position;
+ int bytesCopied = Math.Min(bytesAvailable, buffer.Length);
85
86
Span<byte> source = this.source.Span.Slice(this.position, bytesCopied);
87
0 commit comments