You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
If you read to the end of the MemoryStream, Position == length. If you then try to
call mstrm.Postion = mstrm.Position, it throws an ArgOutOfRangeException
varfoo=newbyte[10];varrom=newReadOnlyMemory<byte>(foo);using(varstream=rom.AsStream()){for(inti=0;i<foof.Length;i++){varb=newbyte[1];stream.Read(b,0,1);Console.WriteLine(stream.Position);}//Throws out of range exceptionstream.Position=stream.Position;}
In MemoryStream.cs, should probably be '>' rather than '>=' to be consistent with the behavior of other streams
If you read to the end of the MemoryStream, Position == length. If you then try to
call mstrm.Postion = mstrm.Position, it throws an ArgOutOfRangeException
In MemoryStream.cs, should probably be '>' rather than '>=' to be consistent with the behavior of other streams
NuGet Package(s): microsoft.toolkit.highperformance
Package Version(s): v6.1.1
Windows 10 Build Number:
App min and target version:
Device form factor:
Visual Studio