Use the array pool by default instead of going through the MemoryPool (dotnet/corefx...
authorDavid Fowler <davidfowl@gmail.com>
Fri, 8 Feb 2019 20:01:35 +0000 (12:01 -0800)
committerStephen Toub <stoub@microsoft.com>
Fri, 8 Feb 2019 20:01:35 +0000 (15:01 -0500)
commit21f7a38f6ed56a53da0518df973152b718842611
treef9f6cf39f4ae7d72750dbd338627d79b1e129d46
parent461726ae97ba6ea261e0633e860171c67a19b379
Use the array pool by default instead of going through the MemoryPool (dotnet/corefx#35171)

* Use the array pool by default instead of going through the MemoryPool<T> abstraction.

* Math.Clamp isn't in netstandard2.0

* Some cleanup based on PR feedback
- Keep setting MemoryPool<byte>.Shared by default
- Fixed the pipelines solution file

Commit migrated from https://github.com/dotnet/corefx/commit/e58f923745d37a5ce5a23ce838833d1e3455e62a
src/libraries/System.IO.Pipelines/System.IO.Pipelines.sln
src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/BufferSegment.cs
src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/Pipe.cs
src/libraries/System.IO.Pipelines/tests/PipeOptionsTests.cs