Made some tweaks to the BufferSegmentStack (dotnet/corefx#35980)
authorDavid Fowler <davidfowl@gmail.com>
Tue, 12 Mar 2019 15:02:02 +0000 (08:02 -0700)
committerGitHub <noreply@github.com>
Tue, 12 Mar 2019 15:02:02 +0000 (08:02 -0700)
commit4e32bfa338e1955d41fde653656ee76725a07382
tree3b7bbcad91a03e5dde758da61f725d1e95adf4dc
parentf93f576fe32909a3f10f2571a15454386935ee5b
Made some tweaks to the BufferSegmentStack (dotnet/corefx#35980)

- Remove array covariance checks
- Added another test for pooled segments

Commit migrated from https://github.com/dotnet/corefx/commit/19ec4f3cabcc0796c14f4663c6ee3ab8173ad90d
src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/BufferSegmentStack.cs
src/libraries/System.IO.Pipelines/tests/BufferSegmentPoolTest.cs [new file with mode: 0644]
src/libraries/System.IO.Pipelines/tests/PipeLengthTests.cs
src/libraries/System.IO.Pipelines/tests/System.IO.Pipelines.Tests.csproj